diff options
Diffstat (limited to 'central/trunk/xmlrpc.php')
-rw-r--r-- | central/trunk/xmlrpc.php | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index f8f5beb..0254e66 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
@@ -75,26 +75,18 @@ function requestRetained($username, $verification, $verificationID) | |||
75 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 75 | return new xmlrpcresp(new xmlrpcval(1, "int")); |
76 | } | 76 | } |
77 | 77 | ||
78 | function sendFromUpdate($subscriptionSeriesURL, $subscriptionID, $title, $author, $url, $semantics, $encryptionID) | 78 | function sendFromUpdate($subscriptionURL, $title, $author, $url, $semantics, $encryptionID) |
79 | { | 79 | { |
80 | $subscriptionURL = instaDisc_resolveSubscription($subscriptionSeriesURL, $subscriptionID); | 80 | $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscriptionURL) . "\""; |
81 | if ($subscriptionURL != 'false') | 81 | $getsed2 = mysql_query($getsed); |
82 | $i=0; | ||
83 | while ($getsed3[$i] = mysql_fetch_array($getsed2)) | ||
82 | { | 84 | { |
83 | $subscriptionURL = $subscriptionURL['url']; | 85 | instaDisc_addItem($getsed3[$i]['username'], $subscriptionURL, $title, $author, $url, $semantics, $encryptionID); |
84 | 86 | $i++; | |
85 | $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscriptionURL) . "\""; | ||
86 | $getsed2 = mysql_query($getsed); | ||
87 | $i=0; | ||
88 | while ($getsed3[$i] = mysql_fetch_array($getsed2)) | ||
89 | { | ||
90 | instaDisc_addItem($getsed3[$i]['username'], $subscriptionURL, $title, $author, $url, $semantics, $encryptionID); | ||
91 | $i++; | ||
92 | } | ||
93 | |||
94 | return new xmlrpcresp(new xmlrpcval(0, "int")); | ||
95 | } | 87 | } |
96 | 88 | ||
97 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 89 | return new xmlrpcresp(new xmlrpcval(0, "int")); |
98 | } | 90 | } |
99 | 91 | ||
100 | function deleteSubscription($username, $verification, $verificationID, $subscription) | 92 | function deleteSubscription($username, $verification, $verificationID, $subscription) |