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.1KB

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