Oppaitime'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.8KB

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