BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

login.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. View::show_header('Login');
  3. ?>
  4. <span id="no-cookies" class="hidden warning">You appear to have cookies disabled.<br /><br /></span>
  5. <?php
  6. if (!$Banned) {
  7. ?>
  8. <form class="auth_form" name="login" id="loginform" method="post" action="login.php">
  9. <?php
  10. if (isset($Err)) {
  11. ?>
  12. <span class="warning"><?=$Err?><br /><br /></span>
  13. <?php
  14. } ?>
  15. <?php if ($Attempts > 0) { ?>
  16. You have <span class="info"><?=(6 - $Attempts)?></span> attempts
  17. remaining.<br /><br />
  18. <strong>WARNING:</strong> You will be banned for 6 hours after your login attempts run out!<br /><br />
  19. <?php } ?>
  20. <table class="layout">
  21. <!-- todo: Put index page stats here -->
  22. <tr>
  23. <td colspan="2">
  24. <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" name="username"
  25. id="username" class="inputtext" required="required" maxlength="20" pattern="[A-Za-z0-9_?]{1,20}"
  26. autofocus="autofocus" placeholder="Username" size="40"
  27. autocomplete="username" />
  28. </td>
  29. </tr>
  30. <tr>
  31. <td>
  32. <input type="password" name="password" id="password" class="inputtext" required="required" maxlength="307200"
  33. pattern=".{6,307200}" placeholder="Password"
  34. autocomplete="current-password" />
  35. </td>
  36. <td>
  37. <input type="text" name="twofa" id="twofa" class="inputtext" maxlength="6" pattern="[0-9]{6}"
  38. inputmode="numeric" placeholder="2FA" size="6" title="Leave blank if you have not enabled 2FA"
  39. autocomplete="one-time-code" />
  40. </td>
  41. </tr>
  42. <tr>
  43. <td colspan="2">
  44. <input type="submit" name="login" value="Log in" class="submit" />
  45. </td>
  46. </tr>
  47. </table>
  48. </form>
  49. <?php
  50. } else {
  51. ?>
  52. <span class="warning">You are banned from logging in for a few hours.</span>
  53. <?php
  54. }
  55. if ($Attempts > 0) {
  56. ?>
  57. <br /><br />
  58. Forgot your password? <a href="login.php?act=recover" class="tooltip" title="Recover your password"
  59. style="text-decoration: underline;">Reset it here!</a>
  60. <?php
  61. }
  62. View::show_footer();