Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. $guid = $_GET['hwid'];
  3. $usern = $_GET['username'];
  4. $passw = $_GET['password'];
  5. include 'config.php';
  6.  
  7. if(isset($_GET["username"]) && isset($_GET["password"]) && isset($_GET["hwid"])) {
  8. if ( $_GET["cid"] == md5($_GET["hwid"])) {
  9. mysql_connect($host,$username,$password);
  10. @mysql_select_db($database) or die( "Unable To Connect To Database $database");
  11. $cguid = mysql_real_escape_string($guid);
  12. $cusername = mysql_real_escape_string($usern);
  13. $cpassword = mysql_real_escape_string($passw);
  14. $hashedpw = md5($cpassword);
  15. mysql_query("INSERT INTO basichwid(username, password, hwid) VALUES('$cusername', '$hashedpw', '$cguid' ) ") or die(mysql_error());
  16. mysql_close();
  17. echo "Account Has Been Created Sucessfully";
  18. }
  19. else
  20. {
  21. echo "Sorry, That is an Invalid CreationID/HWID";
  22. }
  23. }
  24. else
  25. {
  26. echo 'Error, Invalid Webbrowser';
  27.  
  28. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement