From c0151ba7bae99a1c389e2d8b309ebe53b368da1d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 18 Sep 2008 22:04:47 +0000 Subject: Central: Removed Series-related code Refs #57 --- central/trunk/xmlrpc.php | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'central/trunk/xmlrpc.php') 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) return new xmlrpcresp(new xmlrpcval(1, "int")); } -function sendFromUpdate($subscriptionSeriesURL, $subscriptionID, $title, $author, $url, $semantics, $encryptionID) +function sendFromUpdate($subscriptionURL, $title, $author, $url, $semantics, $encryptionID) { - $subscriptionURL = instaDisc_resolveSubscription($subscriptionSeriesURL, $subscriptionID); - if ($subscriptionURL != 'false') + $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscriptionURL) . "\""; + $getsed2 = mysql_query($getsed); + $i=0; + while ($getsed3[$i] = mysql_fetch_array($getsed2)) { - $subscriptionURL = $subscriptionURL['url']; - - $getsed = "SELECT * FROM subscriptions WHERE url = \"" . mysql_real_escape_string($subscriptionURL) . "\""; - $getsed2 = mysql_query($getsed); - $i=0; - while ($getsed3[$i] = mysql_fetch_array($getsed2)) - { - instaDisc_addItem($getsed3[$i]['username'], $subscriptionURL, $title, $author, $url, $semantics, $encryptionID); - $i++; - } - - return new xmlrpcresp(new xmlrpcval(0, "int")); + instaDisc_addItem($getsed3[$i]['username'], $subscriptionURL, $title, $author, $url, $semantics, $encryptionID); + $i++; } - return new xmlrpcresp(new xmlrpcval(1, "int")); + return new xmlrpcresp(new xmlrpcval(0, "int")); } function deleteSubscription($username, $verification, $verificationID, $subscription) -- cgit 1.4.1