diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-11 10:52:21 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-11 10:52:21 +0000 |
commit | dc0316a85e0bd5f0ff82a8f20e4b6fe30dbe3e9b (patch) | |
tree | b8854116e2046db963920e22dcf4f907dd2f0f5d /series/trunk/xmlrpc.php | |
parent | 44c3bc48b5db7b3dc6517d2b073a55af5d4b52db (diff) | |
download | instadisc-dc0316a85e0bd5f0ff82a8f20e4b6fe30dbe3e9b.tar.gz instadisc-dc0316a85e0bd5f0ff82a8f20e4b6fe30dbe3e9b.tar.bz2 instadisc-dc0316a85e0bd5f0ff82a8f20e4b6fe30dbe3e9b.zip |
Series: Added sendFromUpdate()
Refs #55
Diffstat (limited to 'series/trunk/xmlrpc.php')
-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(); |