Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat /var/www/login.php
- <?php
- $username = 'admin';
- $password = 'kjhjkhgjhkgkhjgkjhgjkhgkjhgjkhgjkhgjhkghjkgkjgkjhgjkgh';
- ?>
- <html>
- <head></head>
- <body>
- <?php
- if (!isset($_POST['submit'])) {
- echo '<form action="#" method="post">
- Username: <input type="text" name="username" /> <br />
- Password: <input type="password" name="password" /> <br />
- <input type="submit" name="submit" value="Submit" />
- </form>';
- } else {
- if (($_POST['username'] === $username) && ($_POST['password'] === $password)) {
- echo 'Welcome!';
- } else {
- echo 'Incorrect username and/or password!';
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement