Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2. if (!empty($_POST['pass'])) {
  3.     if ($_POST["pass"] == "TestPassword123") {
  4.         $_SESSION["valid"] = true;
  5.         $_SESSION["time"] = time();
  6.         header("Location: admin.php");
  7.     } else {
  8.         echo "Incorrect password";
  9.     }
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement