Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $heslo = "heslo";
- $pass = $_POST['heslo'];
- if (($pass == $heslo) or ($_SESSION['authuser'] == 1)) {
- $_SESSION['authuser'] = 1;
- header( 'Location: _index.php' ) ;
- }
- else {
- header( 'Location: index.php' ) ;
- exit();
- }
- ?>
Add Comment
Please, Sign In to add comment