Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Config's make life soo mutch easier!
- require_once('/config/config.php') or die('You fucked up genius!');
- //Store username and pw
- $pusername = $_POST['username'];
- $ppassword = $_POST['password'];
- //Security FOOL
- $pusername = addslashes($pusername);
- $ppassword = addslashes($ppassword);
- //Light encryption (we wana dehash to blackmail ;) !)
- $ppassword = md5($ppassword);
- //Connect
- $con = mysql_connect($dHost, $dUsername, $dPassword);
- //Select database
- mysql_select_db($database, $con);
- //Create Query
- $query = "SELECT * FROM 'Logins' WHERE username='$pusername' AND password='$ppassword'";
- //Confirm Login
- if(mysql_num_rows($query) > 0)
- {
- }else{
- }
- //Close (or bad things happen...)
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement