daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $sql_host = "localhost"; //MySQL Host
  4. $sql_user = "web"; //MySQL User
  5. $sql_pass = "123456"; //SQL Password
  6. $arc_db = "logon"; //Auth Database
  7. $con = mysql_connect($sql_host,$sql_user,$sql_pass);
  8. if (!$con)
  9. {
  10. die('Could not connect: ' . mysql_error());
  11. }
  12.  
  13. mysql_select_db($arc_db, $con);
  14.  
  15. if(get_magic_quotes_gpc()) {
  16. array_map('stripslashes', $_POST);
  17. }
  18.  
  19. $login = mysql_real_escape_string($_POST['login']);
  20. $password = mysql_real_escape_string($_POST['password']);
  21. $email = mysql_real_escape_string($_POST['email']);
  22. $key = mysql_real_escape_string($_POST['key']);
  23. $password = sha1(strtoupper($login) . ":" . strtoupper($password));
  24. $password = strtoupper($password);
  25.  
  26.  
  27.  
  28. $acccheck = "SELECT `username` FROM `account2` WHERE `username`='$login'";
  29. $result1 = mysql_query($acccheck, $con);
  30. $row1 = mysql_num_rows($result1);
  31. if($row1 == 1)
  32. {
  33. echo "
  34. echo file_get_contents($header.html)
  35. Der Accountname existiert bereits!
  36. echo file_get_contents($footer.html)
  37. ";
  38. }
  39.  
  40. else
  41. {
  42. $keycheck1 = "SELECT `key` FROM `keys` WHERE `key`='$key'";
  43. $result = mysql_query($keycheck1, $con);
  44. $row = mysql_num_rows($result);
  45. if($row == 1)
  46. {
  47. mysql_query("DELETE FROM `keys` WHERE `key`='$key'");
  48. $sql="INSERT INTO account2 (username, sha_pass_hash, email, expansion) VALUES ('$login', '$password', '$email', '2')";
  49.  
  50. if (!mysql_query($sql,$con))
  51. {
  52. die('Error: ' . mysql_error());
  53. }
  54. echo "
  55. echo file_get_contents($header.html)
  56. Die Registrierung f&uuml;r CrazyCom Networks ist bis zum 18.12.11 deaktiviert. Dein Account wurde erstellt, aber wird erst zur Er&ouml;ffnung der geschlossenen Beta am 25.12.11 verf&uuml;gbar sein. Bis dahin w&uuml;nschen wir dir viel Erfolg in deinem Leben!
  57. echo file_get_contents($footer.html)
  58. ";
  59. }
  60. else
  61. echo "
  62. echo file_get_contents($header.html)
  63. Falscher Beta-Key!
  64. echo file_get_contents($footer.html)
  65. ";
  66. }
  67. mysql_close($con)
  68. ?>
RAW Paste Data
Top