daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php include('config.php');
  2. if(isset($_SESSION['user']))
  3. {
  4.     Die('U bent al ingelogd!');
  5. }
  6. if(!isset($_POST['submit']))
  7. {
  8.     LoginForm();
  9. }
  10. Else
  11. {
  12.     $username=$_POST['username'];
  13.     $password=$_POST['password'];
  14.     ConnectSRV();
  15.     $query="    SELECT name, password
  16.                 FROM users
  17.                 WHERE name='".$username."' and password='".$password."'";
  18.     $execute=mysql_query($query);
  19.     if(mysql_num_rows($execute) == 1)
  20.     {
  21.         LoginSucces();
  22.         $_SESSION['user'] = 'Bacon';
  23.     }
  24.     Else
  25.     {
  26.         LoginForm();
  27.         Echo '<br>';
  28.         LoginFailed();
  29.     }
  30. }
  31. ?>
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