Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.47 KB | None | 0 0
  1. <HEAD>
  2.     <LINK REL="stylesheet" TYPE="text/css" HREF="Makeup.css" />
  3. </HEAD>
  4. <?php
  5.     mysql_connect("localhost","root","LOLNOPASSHERE");
  6.     @mysql_select_db("novaproject") or die("<CENTER><H3>The database is down, are you?</H3><BR/><IMG SRC='images\disco_ball.gif'><BR/><H3>Don't be a square and get down right now!</H3></CENTER");
  7.     if (isset($_POST["UName"]) && isset($_POST["PWord"]))
  8.     {
  9.         $Query = mysql_query("SELECT * FROM Gebruikers WHERE GebruikerID='".$_POST["UName"]."' AND Wachtwoord='".$_POST["PWord"]."'");
  10.         if (!$Query)
  11.         {
  12.             die("Woa, something went wrong with the database, try again or contact a system admin with this error :<BR/>".mysql_error());
  13.         }
  14.         else
  15.         {
  16.             $Row = mysql_fetch_row($Query);
  17.             $Username = $Row[0];
  18.             $Password = $Row[1];
  19.  
  20.             if (!$Username || !$Password)
  21.             {
  22.                 die("<P>Sorry bro, no such username/password</P>");
  23.             }
  24.             else
  25.             {
  26.                 echo("Welcome 72014");
  27.             }
  28.         }
  29.     }
  30.     else
  31.     {
  32.          echo('<FORM METHOD="POST" ACTION="index.php" ALIGN="CENTER" >
  33.                &nbsp;GebruikerID : <INPUT TYPE="TEXT" NAME="UName" /> <BR/>
  34.                Wachtwoord : <INPUT TYPE="PASSWORD" NAME="PWord" /> <BR/>
  35.                <INPUT TYPE="SUBMIT" VALUE="Login" />
  36.            </FORM>');
  37.     }
  38.     //echo("<BR/><BR/>© Kevin Meijer & Jeffrey Hoekman");
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement