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 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. View::show_header('Login');
  3. ?>
  4. <p id="no-cookies" class="hidden warning">You appear to have cookies disabled.</p>
  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. <p class="warning"><?=$Err?></p>
  13. <?php
  14. } ?>
  15. <?php if ($Attempts > 0) { ?>
  16. <div class="notice">
  17. <p>You have <span class="info"><?=(6 - $Attempts)?></span> attempts remaining.</p>
  18. <p><strong>You'll be banned for 6 hours after your login attempts run out!</strong></p>
  19. </div>
  20. <?php } ?>
  21. <table class="layout" width="250px">
  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. <p class="warning">You are banned from logging in for a few hours.</p>
  53. <?php
  54. }
  55. if ($Attempts > 0) {
  56. ?>
  57. <p>Forgot your password? <a href="login.php?act=recover" class="tooltip" title="Recover your password">Reset it here!</a></p>
  58. <?php
  59. }
  60. View::show_footer();