diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 21:59:23 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 21:59:23 +0000 |
commit | fd3f2cbdaa1e3c160727c3cf09ef03d06174c114 (patch) | |
tree | 12ea30a00c68891f2fbc01f5b2730bc6edc153aa /series/trunk/xmlrpc.php | |
parent | d2a7b26e98569624347d717d7fdfe6c3074658a9 (diff) | |
download | instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.gz instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.tar.bz2 instadisc-fd3f2cbdaa1e3c160727c3cf09ef03d06174c114.zip |
Series: Removed Series component
Refs #57
Diffstat (limited to 'series/trunk/xmlrpc.php')
-rw-r--r-- | series/trunk/xmlrpc.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/series/trunk/xmlrpc.php b/series/trunk/xmlrpc.php deleted file mode 100644 index 01664ad..0000000 --- a/series/trunk/xmlrpc.php +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Series - A Four Project */ | ||
4 | |||
5 | include('includes/instadisc.php'); | ||
6 | |||
7 | function subscriptionInfo($id) | ||
8 | { | ||
9 | if (!instaDisc_subscriptionExists($id)) | ||
10 | { | ||
11 | return new xmlrpcresp(new xmlrpcval('false', 'string')); | ||
12 | } | ||
13 | |||
14 | $sub = instaDisc_getSubscription($id); | ||
15 | return serialize(array( 'url' => $sub['url'], | ||
16 | 'category' => $sub['category'] | ||
17 | )); | ||
18 | } | ||
19 | |||
20 | function getPasswordInfo($id) | ||
21 | { | ||
22 | if (!instaDisc_subscriptionExists($id)) | ||
23 | { | ||
24 | return new xmlrpcresp(new xmlrpcval('false', 'string')); | ||
25 | } | ||
26 | |||
27 | $sub = instaDisc_getSubscription($id); | ||
28 | if ($sub['password'] == '') | ||
29 | { | ||
30 | return new xmlrpcresp(new xmlrpcval('false', 'string')); | ||
31 | } else { | ||
32 | $verID = rand(1,2147483647); | ||
33 | |||
34 | return new xmlrpcresp(new xmlrpcval(md5($sub['password'] . ':' . $verID) . ':' . $verID, 'string')); | ||
35 | } | ||
36 | } | ||
37 | |||
38 | $s = new xmlrpc_server(array( "InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo'), | ||
39 | "InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo') | ||
40 | ), 0); | ||
41 | $s->functions_parameters_type = 'phpvals'; | ||
42 | $s->service(); | ||
43 | |||
44 | ?> | ||