Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. ?>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" type="text/css" href="ne7work.css">
  6. <div align="center" style="font: 12px Verdana;"><br />
  7. <?php
  8. session_start();
  9. $_SESSION['username'] = $_POST['username'];
  10. $_SESSION['password'] = $_POST['password'];
  11. $username = $_SESSION['username'];
  12. $password = $_SESSION['password'];
  13. $login = $_POST['login'];
  14. if(isset($login)) {
  15. if ($username == ne7work && $password == bwabwa || $username == ai4o && $password == ai4o || $username == pwned && $password == pwned || $username == demo && $password == demo) {
  16. header("Location: chat.php");
  17. }
  18. else {
  19. echo 'Wrong username or password.';
  20. }
  21. }
  22. else {?>
  23. <form action="" method="post">
  24. Username: <input type="text" name="username" /> Password: <input type="password" name="password" /> <input type="submit" name="login" value="Login" />
  25. </form>
  26. <?php
  27. }
  28. ?>
  29. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement