diff options
Diffstat (limited to 'series/trunk')
-rw-r--r-- | series/trunk/xmlrpc.php | 14 |
1 files changed, 13 insertions, 1 deletions
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) | |||
35 | } | 35 | } |
36 | } | 36 | } |
37 | 37 | ||
38 | function sendFromUpdate($username, $verification, $verificationID, $seriesURL, $seriesID, $subscriptionURL, $subscriptionTitle, $subscriptionCategory, $subscriptionPersonal, $title, $author, $url, $semantics, $encryptionID) | ||
39 | { | ||
40 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) | ||
41 | { | ||
42 | } else { | ||
43 | return new xmlrpcresp(new xmlrpcval('2', 'int')); | ||
44 | } | ||
45 | |||
46 | return new xmlrpcresp(new xmlrpcval('1', 'int')); | ||
47 | } | ||
48 | |||
38 | $s = new xmlrpc_server(array( "InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo'), | 49 | $s = new xmlrpc_server(array( "InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo'), |
39 | "InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo') | 50 | "InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo'), |
51 | "InstaDisc.sendFromUpdate" => array('function' => 'sendFromUpdate') | ||
40 | ), 0); | 52 | ), 0); |
41 | $s->functions_parameters_type = 'phpvals'; | 53 | $s->functions_parameters_type = 'phpvals'; |
42 | $s->service(); | 54 | $s->service(); |