Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Connection details
- $dbhost = "db4free.net"; //!! localhost or the ip of the server
- $dbname = ""; //!! name of the database
- $dbuser = ""; //!! username
- $dbpass = ""; //!! password
- $user = addslashes($_GET['username']);
- $hwid = addslashes($_GET['hwid']);
- $pass = addslashes($_GET['password']);
- mysql_connect($dbhost, $dbuser, $dbpass)or die("3");
- $verb = mysql_select_db($dbname);
- if ($verb)
- {
- $sql = "SELECT * FROM Users WHERE HWID='".$hwid."'";
- $quer = mysql_query($sql) or die("4");
- $num = mysql_num_rows($quer);
- if ($num == 0)
- {
- echo("0");
- exit();
- }
- else
- {
- echo("123456");
- exit();
- }
- }
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment