From dc0316a85e0bd5f0ff82a8f20e4b6fe30dbe3e9b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 11 Sep 2008 10:52:21 +0000 Subject: Series: Added sendFromUpdate() Refs #55 --- series/trunk/xmlrpc.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'series') diff --git a/series/trunk/xmlrpc.php b/series/trunk/xmlrpc.php index 01664ad..6d3a245 100644 --- a/series/trunk/xmlrpc.php +++ b/series/trunk/xmlrpc.php @@ -35,8 +35,20 @@ function getPasswordInfo($id) } } +function sendFromUpdate($username, $verification, $verificationID, $seriesURL, $seriesID, $subscriptionURL, $subscriptionTitle, $subscriptionCategory, $subscriptionPersonal, $title, $author, $url, $semantics, $encryptionID) +{ + if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) + { + } else { + return new xmlrpcresp(new xmlrpcval('2', 'int')); + } + + return new xmlrpcresp(new xmlrpcval('1', 'int')); +} + $s = new xmlrpc_server(array( "InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo'), - "InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo') + "InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo'), + "InstaDisc.sendFromUpdate" => array('function' => 'sendFromUpdate') ), 0); $s->functions_parameters_type = 'phpvals'; $s->service(); -- cgit 1.4.1