Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php
  2. include ('includes/document_head.php');
  3. define('USERNAME_REQUIRED', FALSE);
  4. define('ACCOUNT_REQUIRED', FALSE);
  5. include('global.php');
  6. if(isset($_SESSION["username"]))
  7. header("Location: me.php");
  8. elseif(isset($_SESSION["account"]))
  9. header("Location: characters.php");
  10. ?>
  11. <head>
  12. <title><?php echo $sitename; ?></title>
  13. </head>
  14. <body>
  15. <div id="login_box" class="round_all clearfix">
  16. <center><p><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online'] ?></p></center>
  17.  
  18. <?php
  19. if(isset($_GET["error"]) && $_GET["error"] == "password")
  20. {
  21. ?>
  22.  
  23. <form action="login.php" method="post">
  24. <label class="fields"><strong>Username</strong><input type="text" id="username" class="indent round_all"></label>
  25.  
  26. <label class="fields"><strong>Password</strong><input type="password" id="password" class="indent round_all"></label>
  27.  
  28.  
  29. <button class="button_colour round_all"><img width="24" height="24" alt="Locked 2" src="images/icons/small/white/Locked%202.png"><span>Login</span></button>
  30. </form>
  31. <div id="bar" class="round_bottom">
  32. <?php echo $lang['index_register']; ?>
  33.  
  34. </div>
  35. <a href="#" id="login_logo"><span></span></a>
  36.  
  37. <?php include ('includes/template_options.php');?>
  38. <script type="text/javascript">
  39. var username = new LiveValidation('username');
  40. username.add( Validate.Presence );
  41.  
  42. var password = new LiveValidation('password');
  43. password.add( Validate.Presence );
  44. </script>
  45. </body>
  46. </html>
  47. <?php
  48. include ('includes/closing_items.php');
  49. include("system/footer.php");
  50. ?>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement