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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. </td>
  28. </tr>
  29. <tr>
  30. <td>
  31. <input type="password" name="password" id="password" class="inputtext" required="required" maxlength="307200"
  32. pattern=".{6,307200}" placeholder="Password" />
  33. </td>
  34. <td>
  35. <input type="text" name="twofa" id="twofa" class="inputtext" maxlength="6" pattern="[0-9]{6}"
  36. inputmode="numeric" placeholder="2FA" size="6" title="Leave blank if you have not enabled 2FA" />
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2">
  41. <input type="submit" name="login" value="Log in" class="submit" />
  42. </td>
  43. </tr>
  44. </table>
  45. </form>
  46. <?php
  47. } else {
  48. ?>
  49. <span class="warning">You are banned from logging in for a few hours.</span>
  50. <?php
  51. }
  52. if ($Attempts > 0) {
  53. ?>
  54. <br /><br />
  55. Forgot your password? <a href="login.php?act=recover" class="tooltip" title="Recover your password"
  56. style="text-decoration: underline;">Reset it here!</a>
  57. <?php
  58. }
  59. View::show_footer();