Advertisement
snavy

Untitled

Nov 28th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2.     $pass = $_POST['password'];
  3.     $password = 123; # Your Password
  4.  
  5.     session_start();
  6.     if(!isset($_SESSION['password'])) {
  7.         $_SESSION['password'] = false;
  8.         header('Location:index.php');
  9.     } elseif (isset($_SESSION['password'])) {
  10.         if($pass == $password) {
  11.             $_SESSION['password'] = true;
  12.             header('Location:home.php');
  13.         } else {
  14.             echo '  <script>
  15.                         alert("Incorrect Password!");
  16.                         window.location = "http://corvia-ot.com/loz/index.php"
  17.                     </script>
  18.                 ';
  19.         }
  20.     }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement