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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?
  2. BIC::challenge();
  3. View::show_header('Login');
  4. ?>
  5. <span id="no-cookies" class="hidden warning">You appear to have cookies disabled.<br /><br /></span>
  6. <noscript><span class="warning"><?=SITE_NAME?> requires JavaScript to function properly. Please enable JavaScript in your browser.</span><br /><br /></noscript>
  7. <?
  8. if (!$Banned) {
  9. ?>
  10. <form class="auth_form" name="login" id="loginform" method="post" action="login.php">
  11. <?
  12. if (isset($Err)) {
  13. ?>
  14. <span class="warning"><?=$Err?><br /><br /></span>
  15. <? } ?>
  16. <? if ($Attempts > 0) { ?>
  17. You have <span class="info"><?=(6 - $Attempts)?></span> attempts remaining.<br /><br />
  18. <strong>WARNING:</strong> You will be banned for 6 hours after your login attempts run out!<br /><br />
  19. <? } ?>
  20. <table class="layout">
  21. <tr>
  22. <td colspan="2">
  23. <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" />
  24. </td>
  25. </tr>
  26. <tr>
  27. <td>
  28. <input type="password" name="password" id="password" class="inputtext" required="required" maxlength="307200" pattern=".{6,307200}" placeholder="Password" />
  29. </td>
  30. <td>
  31. <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" />
  32. </td>
  33. </tr>
  34. <tr>
  35. <td colspan="2">
  36. <input type="submit" name="login" value="Log in" class="submit" />
  37. </td>
  38. </tr>
  39. </table>
  40. </form>
  41. <?
  42. } else {
  43. ?>
  44. <span class="warning">You are banned from logging in for a few hours.</span>
  45. <?
  46. }
  47. if ($Attempts > 0) {
  48. ?>
  49. <br /><br />
  50. Forgot your password? <a href="login.php?act=recover" class="tooltip" title="Recover your password" style="text-decoration: underline;">Reset it here!</a>
  51. <?
  52. }
  53. View::show_footer(); ?>