Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. <?php
  2. $dbhost = '208.146.35.1';
  3. $dbuser = 'fastdl';
  4. $dbpass = 'Voltage!911!sql';
  5. $dbname = 'fastdl_perp3';
  6.  
  7. $host2="localhost";
  8. $username2="voltageg_site";
  9. $password2="rogerman123";
  10. $database2="voltageg_forums";
  11.  
  12. $conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ('I cannot connect to the database because: ' . mysql_error());
  13. mysql_select_db ($dbname) or die('Could not select BAN databse');
  14.  
  15. $steamid = $_GET['steamid'];
  16. $q = mysql_query("SELECT * FROM `pending_users` WHERE `steamid`='" . $steamid ."' LIMIT 1");
  17.  
  18. if (!$q){ die('b'); }
  19.  
  20. function SteamID2CommunityID($steamid) {
  21. $parts = explode(':', str_replace('STEAM_', '' ,$steamid));
  22. return bcadd(bcadd('76561197960265728', $parts['1']), bcmul($parts['2'], '2'));
  23. }
  24.  
  25. while ($row = mysql_fetch_assoc($q)){
  26. mysql_query("DELETE FROM `pending_users` WHERE `id` = '".$row['id']."'");
  27. $salt = substr(md5(mt_rand()), 0, 30);
  28. $regOptions = array(
  29. 'usergroupid' => "'2'",
  30. 'membergroupids' => "''",
  31. 'displaygroupid' => "'0'",
  32. 'username' => "'".$row['username']."'",
  33. 'password' => "'".md5(md5($row['password']) . $salt)."'",
  34. 'passworddate' => "'".date('Y-m-d')."'",
  35. 'email' => "'notavailable@gmail.com'",
  36. 'styleid' => "'0'",
  37. 'parentemail' => "''",
  38. 'homepage' => "''",
  39. 'icq' => "''",
  40. 'aim' => "''",
  41. 'yahoo' => "''",
  42. 'msn' => "''",
  43. 'skype' => "''",
  44. 'showvbcode' => "'1'",
  45. 'showbirthday' => "'2'",
  46. 'usertitle' => "''",
  47. 'customtitle' => "'0'",
  48. 'joindate' => "'".time()."'",
  49. 'daysprune' => "'0'",
  50. 'lastvisit' => "'".time()."'",
  51. 'lastactivity' => "'".time()."'",
  52. 'lastpost' => "'0'",
  53. 'lastpostid' => "'0'",
  54. 'posts' => "'0'",
  55. 'reputation' => "'10'",
  56. 'reputationlevelid' => "'5'",
  57. 'timezoneoffset' => "'0'",
  58. 'pmpopup' => "'0'",
  59. 'avatarid' => "'0'",
  60. 'avatarrevision' => "'0'",
  61. 'profilepicrevision' => "'0'",
  62. 'sigpicrevision' => "'0'",
  63. 'profilepicrevision' => "'0'",
  64. 'options' => "'33570831'",
  65. 'birthday' => "''",
  66. 'birthday_search' => "'0000-00-00'",
  67. 'maxposts' => "'-1'",
  68. 'startofweek' => "'-1'",
  69. 'ipaddress' => "'".$row['ipaddress']."'",
  70. 'referrerid' => "'0'",
  71. 'languageid' => "'0'",
  72. 'emailstamp' => "'0'",
  73. 'threadedmode' => "'0'",
  74. 'autosubscribe' => "'-1'",
  75. 'pmunread' => "'0'",
  76. 'salt' => "'".$salt."'",
  77. 'ipoints' => "'0'",
  78. 'infractions' => "'0'",
  79. 'warnings' => "'0'",
  80. 'infractiongroupid' => "''",
  81. 'adminoptions' => "'0'",
  82. 'profilevisits' => "'0'",
  83. 'friendcount' => "'0'",
  84. 'friendreqcount' => "'0'",
  85. 'vmunreadcount' => "'0'",
  86. 'vmmoderatedcount' => "'0'",
  87. 'socgroupinvitecount' => "'0'",
  88. 'socgroupreqcount' => "'0'",
  89. 'pcunreadcount' => "'0'",
  90. 'pcmoderatedcount' => "'0'",
  91. 'gmmoderatedcount' => "'0'",
  92. 'assetposthash' => "''",
  93. 'fbuserid' => "''",
  94. 'fbjoindate' => "'0'",
  95. 'fbname' => "''",
  96. 'logintype' => "'vb'",
  97. 'fbaccesstoken' => "''",
  98. 'tmnt_joins' => "'0'",
  99. 'tmnt_wins' => "'0'",
  100. 'tmnt_teams' => "''",
  101. 'tmnt_ladders' => "''",
  102. 'tmnt_notifications' => "''",
  103. 'doubloons' => "'0'",
  104. 'fans' => "'0'",
  105. 'achievements' => "''",
  106. 'importuserid' => "'0'",
  107. 'mh_firstname' => "''",
  108. 'mh_lastname' => "''",
  109. 'mh_address' => "''",
  110. 'mh_city' => "''",
  111. 'mh_zipcode' => "''",
  112. 'mh_location' => "'0'",
  113. 'mh_state' => "''",
  114. 'mh_country' => "''",
  115. 'mh_phone' => "''",
  116. 'mh_invoices' => "'0'",
  117. 'mh_amount' => "'0.00'",
  118. 'mh_paid' => "'0.00'",
  119. 'mh_unpaid' => "'0.00'",
  120. 'mh_overdue' => "'0.00'",
  121. 'bloggroupreqcount' => "'0'",
  122. 'showblogcss' => "'1'");
  123. mysql_query("DELETE FROM `pending_users` WHERE `steamid` = '".$row['steamid']."' LIMIT 1");
  124.  
  125. $conn = mysql_connect ($dbhost2, $dbuser2, $dbpass2) or die ('I cannot connect to the database because: ' . mysql_error());
  126. mysql_select_db ($dbname2) or die('Could not select BAN databse');
  127. mysql_query("INSERT INTO `forums_user` (" . implode(', ', array_keys($regOptions)) . ") VALUES (" . implode(', ', $regOptions) . ')');
  128. $id = mysql_insert_id();
  129.  
  130. mysql_query("INSERT INTO `forums_userfield` (`userid`, `field5`, `field6`, `field7`, `field8`) ('".$id."', '".$row['steamid']."', '".SteamID2CommunityID($row['steamid'])."', 'voltage', '4')");
  131. die('s');
  132. }
  133. die('c');
  134. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement