Fredin

dfsfs

Jun 13th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.     if(isset($_GET['control']))
  2.     {
  3.         $adminname = $_POST['adminname'];
  4.         $password = $_POST['password'];
  5.        
  6.         if($adminname == "eivert" && $password == "qwerty")
  7.         {
  8.             $_SESSION['adminstatus'] = "loggedin";
  9.             header('Location: index.php?admin');
  10.         }
  11.         if($adminname != "eivert" || $password != "qwerty")
  12.         {
  13.             echo"<b style='background-color:red'>Fel Användard-ID eller Lösenord</b>";   
  14.         }
  15.     }
  16.     if(isset($_SESSION['adminstatus']) == "loggedin")
  17.         {
  18.             include('control.php');    
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment