diff options
-rw-r--r-- | central/trunk/includes/instadisc.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 1426785..d07e53b 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php | |||
@@ -5,7 +5,7 @@ | |||
5 | include_once('includes/db.php'); | 5 | include_once('includes/db.php'); |
6 | include_once('includes/class.phpmailer.php'); | 6 | include_once('includes/class.phpmailer.php'); |
7 | 7 | ||
8 | function instaDisc_checkVerification($username, $verification, $verificationID, $table, $nameField, $passField, $comeAgain = false, $comeAgainURL = '', $comeAgainMethod = '', $comeAgainSignature = '') | 8 | function instaDisc_checkVerification($username, $verification, $verificationID, $table, $nameField, $passField) |
9 | { | 9 | { |
10 | $getverid = "SELECT * FROM oldVerID WHERE username = \"" . mysql_real_escape_string($username) . "\" AND verID = " . $verificationID; | 10 | $getverid = "SELECT * FROM oldVerID WHERE username = \"" . mysql_real_escape_string($username) . "\" AND verID = " . $verificationID; |
11 | $getverid2 = mysql_query($getverid); | 11 | $getverid2 = mysql_query($getverid); |
@@ -42,24 +42,6 @@ function instaDisc_checkVerification($username, $verification, $verificationID, | |||
42 | return true; | 42 | return true; |
43 | } | 43 | } |
44 | } | 44 | } |
45 | } else { | ||
46 | if ($comeAgain) | ||
47 | { | ||
48 | $cserver = $_SERVER['SERVER_NAME']; | ||
49 | $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver) . "\""; | ||
50 | $getuk2 = mysql_query($getuk); | ||
51 | $getuk3 = mysql_fetch_array($getuk2); | ||
52 | |||
53 | $verID = rand(1,2147483647); | ||
54 | |||
55 | $client = new xmlrpc_client($comeAgainURL); | ||
56 | $msg = new xmlrpcmsg("InstaDisc.comeAgain", array( new xmlrpcval($cserver, 'string'), | ||
57 | new xmlrpcval(md5($cserver . ":" . $getuk3['code'] . ":" . $verID), 'string'), | ||
58 | new xmlrpcval($verID, 'int'), | ||
59 | new xmlrpcval($comeAgainMethod, 'string'), | ||
60 | new xmlrpcval(serialize($comeAgainSignature), 'string'))); | ||
61 | $client->send($msg); | ||
62 | } | ||
63 | } | 45 | } |
64 | 46 | ||
65 | return false; | 47 | return false; |