Guest User

Untitled

a guest
Jun 19th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $con = mysql_connect("74.91.113.22", "root", "aftermath12"); // Change this line to your information.
  5.  
  6.  
  7.  
  8. if (!$con) { die('a'); }
  9.  
  10.  
  11.  
  12. mysql_select_db("perp"); // Change this line to your database
  13.  
  14.  
  15.  
  16. $steamid = $_GET['steamid'];
  17.  
  18.  
  19.  
  20. $q = mysql_query("SELECT * FROM `members_pending` WHERE `steamid`='" . $steamid ."' LIMIT 1");
  21.  
  22.  
  23.  
  24. if (!$q){ die('b'); }
  25.  
  26.  
  27.  
  28. while ($row = mysql_fetch_assoc($q)){
  29.  
  30. $regOptions = array(
  31.  
  32. 'username' => "'" . $row['username'] . "'",
  33.  
  34. 'email' => "'notavailable@gmail.com'",
  35.  
  36. 'password' => '\'' . sha1(strtolower($row['username']) . $row['password']) . '\'',
  37.  
  38. 'passworddate' => time(),
  39.  
  40. 'usergroupid' => 2,
  41.  
  42. 'displaygroupid' => 0,
  43.  
  44. 'styleid' => 0,
  45.  
  46. 'memberIP' => "'$row[ipaddress]'",
  47.  
  48. 'memberIP2' => "'$row[ipaddress]'",
  49.  
  50. 'showvbcode' => 2,
  51.  
  52. 'showbirthday' => 2,
  53.  
  54. 'usertitle' => "'Registered User'",
  55.  
  56. 'customtitle' => 0,
  57.  
  58. 'joindate' => 6,
  59.  
  60. 'daysprune' => 0,
  61.  
  62. 'lastpost' => 0,
  63.  
  64. 'lastpostid' => 0,
  65.  
  66. 'posts' => 0,
  67.  
  68. 'reputation' => 10,
  69.  
  70. 'reputationlevelid' => 1,
  71.  
  72. 'pmpopup' => 0,
  73.  
  74. 'avatarid' => 0,
  75.  
  76. 'avatarrevision' => 0,
  77.  
  78. 'profilepicrevision' => 0,
  79.  
  80. 'sigpicrevision' => 0,
  81.  
  82. 'options' => 11552855,
  83.  
  84. 'birthday_search' => "'0000-00-00'",
  85.  
  86. 'maxposts' => -1,
  87.  
  88. 'startofweek' => 1,
  89.  
  90. 'referrerid' => 0,
  91.  
  92. 'languageid' => 0,
  93.  
  94. 'emailstamp' => 0,
  95.  
  96. 'showblogcss' => 1,
  97.  
  98. 'autosubscribe' => -1,
  99.  
  100. 'logintype' => "'vb'",
  101.  
  102. 'steamid' => "'$row[steamid]'",
  103.  
  104. );
  105.  
  106.  
  107.  
  108.  
  109.  
  110. mysql_query("
  111.  
  112. INSERT INTO forum_user
  113.  
  114. (" . implode(', ', array_keys($regOptions)) . ")
  115.  
  116. VALUES (" . implode(', ', $regOptions) . ')');
  117.  
  118.  
  119.  
  120. echo mysql_error();
  121.  
  122.  
  123.  
  124. mysql_query("DELETE FROM `members_pending` WHERE `steamid`='" . $steamid . "' LIMIT 1");
  125.  
  126.  
  127.  
  128. die('s');
  129.  
  130. }
  131.  
  132.  
  133.  
  134. die('c');
  135.  
  136.  
  137.  
  138.  
  139.  
  140. ?>
Add Comment
Please, Sign In to add comment