Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($username&&$password)
- {
- $connect = mysql_connect("192.168.1.19","root","xxx") or die ("Couldnt connect to MySQL database. Please contact Ocela at dylplum2002@gmail.com");
- mysql_select_db("proxy") or die ("Couldn't find database. Please contact Ocela at dylplum2002@gmail.com");
- $query = mysql_query("SELECT * FROM users WHERE username='$username'");
- $numrows = mysql_num_rows($query);
- if($numrows !=0)
- {
- while ($row = mysql_fetch_assoc($query))
- {
- $dbusername = $row['username'];
- $dbpassword = $row['password'];
- {
- if ($username==$dbusername&&$password==$dbpassword)
- {
- echo "Login succesful. <a href='/proxy/index.php'>Click here to enter the Premium Proxy.</a>";
- $_SESSION['username']=$dbusername;
- }
- else
- echo "Incorrect password.";
- }
- else
- die "That login doesnt exist. To get an account please contact Dylan.";
- }
- else
- die ("Please enter a username and password.");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement