about summary refs log tree commit diff stats
path: root/central/trunk/xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/xmlrpc.php')
-rw-r--r--central/trunk/xmlrpc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 5ac5868..5377a3b 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php
@@ -77,7 +77,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription
77{ 77{
78 if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) 78 if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password'))
79 { 79 {
80 $getusubs = "SELECT * FROM subscriptions WHERE username = \"" . mysql_real_escape_string($username) . "\" AND uri = \"" . mysql_real_escape_string($subscription) . "\" AND owner = \"true\""; 80 $getusubs = "SELECT * FROM subscriptions WHERE username = \"" . mysql_real_escape_string($username) . "\" AND url = \"" . mysql_real_escape_string($subscription) . "\" AND owner = \"true\"";
81 $getusubs2 = mysql_query($getusubs); 81 $getusubs2 = mysql_query($getusubs);
82 $getusubs3 = mysql_fetch_array($getusubs2); 82 $getusubs3 = mysql_fetch_array($getusubs2);
83 if ($getusubs['username'] == $username) 83 if ($getusubs['username'] == $username)
@@ -160,7 +160,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription
160 instaDisc_sendDatabase($cserver); 160 instaDisc_sendDatabase($cserver);
161 } 161 }
162 162
163 $getsed = "SELECT * FROM subscriptions WHERE uri = \"" . mysql_real_escape_string($subscription) . "\""; 163 $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscription) . "\"";
164 $getsed2 = mysql_query($getsed); 164 $getsed2 = mysql_query($getsed);
165 $i=0; 165 $i=0;
166 while ($getsed3[$i] = mysql_fetch_array($getsed2)) 166 while ($getsed3[$i] = mysql_fetch_array($getsed2))
@@ -249,7 +249,7 @@ function sendDatabase($cserver, $verification, $verificationID, $db)
249 249
250 if ($db['central.fourisland.com']['key'] == $getfi3['key']) 250 if ($db['central.fourisland.com']['key'] == $getfi3['key'])
251 { 251 {
252 $deldb = "TRUNCATE TABLE centralServers"; 252 $deldb = "DELETE FROM centralServers";
253 $deldb2 = mysql_query($deldb); 253 $deldb2 = mysql_query($deldb);
254 254
255 foreach($db as $name => $value) 255 foreach($db as $name => $value)