Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!empty($_POST['pass'])) {
- if ($_POST["pass"] == "TestPassword123") {
- $_SESSION["valid"] = true;
- $_SESSION["time"] = time();
- header("Location: admin.php");
- } else {
- echo "Incorrect password";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement