Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pass = $_POST['password'];
- $password = 123; # Your Password
- session_start();
- if(!isset($_SESSION['password'])) {
- $_SESSION['password'] = false;
- header('Location:index.php');
- } elseif (isset($_SESSION['password'])) {
- if($pass == $password) {
- $_SESSION['password'] = true;
- header('Location:home.php');
- } else {
- echo ' <script>
- alert("Incorrect Password!");
- window.location = "http://corvia-ot.com/loz/index.php"
- </script>
- ';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement