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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <? View::show_header('Login'); ?>
  2. <span id="no-cookies" class="hidden warning">You appear to have cookies disabled.<br /><br /></span>
  3. <noscript><span class="warning"><?=SITE_NAME?> requires JavaScript to function properly. Please enable JavaScript in your browser.</span><br /><br /></noscript>
  4. <?
  5. if (!$Banned) {
  6. ?>
  7. <form class="auth_form" name="login" id="loginform" method="post" action="login.php">
  8. <?
  9. if (isset($Err)) {
  10. ?>
  11. <span class="warning"><?=$Err?><br /><br /></span>
  12. <? } ?>
  13. <? if ($Attempts > 0) { ?>
  14. You have <span class="info"><?=(6 - $Attempts)?></span> attempts remaining.<br /><br />
  15. <strong>WARNING:</strong> You will be banned for 6 hours after your login attempts run out!<br /><br />
  16. <? } ?>
  17. <table class="layout">
  18. <tr>
  19. <td>Username&nbsp;</td>
  20. <td colspan="2">
  21. <input type="text" name="username" id="username" class="inputtext" required="required" maxlength="20" pattern="[A-Za-z0-9_?]{1,20}" autofocus="autofocus" placeholder="Username" />
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>Password&nbsp;</td>
  26. <td colspan="2">
  27. <input type="password" name="password" id="password" class="inputtext" required="required" maxlength="307200" pattern=".{6,307200}" placeholder="Password" />
  28. </td>
  29. </tr>
  30. <tr>
  31. <td></td>
  32. <td>
  33. <input type="checkbox" id="keeplogged" name="keeplogged" value="1"<?=(isset($_REQUEST['keeplogged']) && $_REQUEST['keeplogged']) ? ' checked="checked"' : ''?> />
  34. <label for="keeplogged">Remember me</label>
  35. </td>
  36. <td><input type="submit" name="login" value="Log in" class="submit" /></td>
  37. </tr>
  38. </table>
  39. </form>
  40. <?
  41. } else {
  42. ?>
  43. <span class="warning">You are banned from logging in for a few hours.</span>
  44. <?
  45. }
  46. if ($Attempts > 0) {
  47. ?>
  48. <br /><br />
  49. Forgot your password? <a href="login.php?act=recover" class="tooltip" title="Recover your password" style="text-decoration: underline;">Reset it here!</a>
  50. <?
  51. }
  52. ?>
  53. <script type="text/javascript">
  54. cookie.set('cookie_test', 1, 1);
  55. if (cookie.get('cookie_test') != null) {
  56. cookie.del('cookie_test');
  57. } else {
  58. $('#no-cookies').gshow();
  59. }
  60. </script>
  61. <? View::show_footer(); ?>