Guest User

Untitled

a guest
Apr 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $heslo = "heslo";
  4.  
  5.  
  6. $pass = $_POST['heslo'];
  7.  
  8.  
  9. if (($pass == $heslo) or ($_SESSION['authuser'] == 1)) {
  10.  
  11. $_SESSION['authuser'] = 1;
  12.  
  13. header( 'Location: _index.php' ) ;
  14. }
  15. else {
  16. header( 'Location: index.php' ) ;
  17. exit();
  18.  
  19. }
  20. ?>
Add Comment
Please, Sign In to add comment