daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. session_start();
  3. error_reporting (E_ALL ^ E_NOTICE);
  4.  
  5. if($_GET['login'] == 1) {
  6.  
  7.  /* Her gjoer du sjekk mot DB. */
  8.  if($_POST['username'] = "morten.lein@edb.com") {
  9.     $_SESSION['username'] = $_POST['username'];
  10.  
  11.  }
  12.  
  13.  /* OVER HER VETTU :D:D:D:D */
  14.  
  15. }
  16.  
  17.  
  18. if($_GET['login'] == 0) {
  19.     unset($_SESSION['username']);
  20.       session_destroy;
  21. }
  22.  
  23.  
  24.  
  25.  if(!isset($_SESSION['username'])) {
  26.  
  27.   echo "Vennligst logg inn p&aring; siden<br>";
  28.  
  29.   echo "<form action=\"?login=1\" method=\"POST\">";
  30.   echo "Username: <input name=\"username\" size=\"15\" value=\"morten.lein@edb.com\"><br />";
  31.   echo "Password: <input type=\"password\" name=\"password\" size=\"8\"><br />";
  32.   echo "<input type=\"submit\" value=\"Login\">";
  33.   echo "</form>";
  34.  
  35.  } else {
  36.  print "penis <br />";
  37.  print "<a href=\"?login=0\">logg ut</a><br />";
  38.  }    
  39.    
  40.  
  41.  
  42. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top