Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```php
- <?php
- // Connection details
- $dbhost = "mysql.hostinger.co.uk"; //!! localhost or the ip of the server
- $dbname = "u366174572_users"; //!! name of the database
- $dbuser = "u366174572_admin"; //!! username
- $dbpass = "ug7c2cvjGX"; //!! password
- $user = $_GET['u'];
- $pass = $_GET['p'];
- $hwid = $_GET['h'];
- $con = mysqli_connect($dbhost, $dbuser, $dbpass);
- $verb = mysqli_select_db($con, $dbname);
- if ($verb)
- {
- $sql = "SELECT * FROM users WHERE username='$user' AND password='$pass' AND hwid='$hwid'";
- $quer = mysqli_query($con, $sql);
- $num = mysqli_num_rows($quer);
- if ($num == 0) {
- echo("0");
- exit();
- }
- elseif ($num == 1) {
- echo("1");
- }
- }
- ?>```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement