Hormold

Untitled

Dec 8th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $pwd="12345";
  4. if(!isset($_SESSION["lgn"])){
  5.     if(isset($_GET["pass"]) and $_GET["pass"]==$pwd){$_SESSION["lgn"]=1;header("Location: ?");}
  6.     echo "<form method='get'>Password: <input type='password' name='pass' /> <input type='submit' value='Login'></form>";
  7.     die();
  8. }
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment