Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- ?>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" href="ne7work.css">
- <div align="center" style="font: 12px Verdana;"><br />
- <?php
- session_start();
- $_SESSION['username'] = $_POST['username'];
- $_SESSION['password'] = $_POST['password'];
- $username = $_SESSION['username'];
- $password = $_SESSION['password'];
- $login = $_POST['login'];
- if(isset($login)) {
- if ($username == ne7work && $password == bwabwa || $username == ai4o && $password == ai4o || $username == pwned && $password == pwned || $username == demo && $password == demo) {
- header("Location: chat.php");
- }
- else {
- echo 'Wrong username or password.';
- }
- }
- else {?>
- <form action="" method="post">
- Username: <input type="text" name="username" /> Password: <input type="password" name="password" /> <input type="submit" name="login" value="Login" />
- </form>
- <?php
- }
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement