diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-17 13:36:03 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-17 13:36:03 +0000 |
commit | fdf82fc3d06c5d4f9c4d3f8a89906cc57bdaddc1 (patch) | |
tree | 04683b3c60be33155664c91397024641e8981917 | |
parent | 9454c22d7f257691f24170f210d78a0fd85d331d (diff) | |
download | instadisc-fdf82fc3d06c5d4f9c4d3f8a89906cc57bdaddc1.tar.gz instadisc-fdf82fc3d06c5d4f9c4d3f8a89906cc57bdaddc1.tar.bz2 instadisc-fdf82fc3d06c5d4f9c4d3f8a89906cc57bdaddc1.zip |
Central: Undid Come Again
I don't currently like the look of Come Again, perhaps it could be implemented at a later release. Refs #43
-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; |