Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $1 = $username;
- $2 = $password;
- $adminusername = "admin";
- $adminpassword = "mads";
- if ($1 == "$adminusername" && $2 == "$adminpassword") {
- $_SESSION['loggedin'] = "$1";
- header('Location: admin.php');
- } else {
- header('Location: index.php?msg=Forkert-brugernavn-eller-kodeord');
- }
- ?>
Add Comment
Please, Sign In to add comment