diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-06 22:22:05 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-06 22:22:05 +0000 |
commit | 2c33a04e24aefdb75d35841f976875c693893973 (patch) | |
tree | 99ff78c788cf00be5ef17b22c7687d7d872d6413 /central/trunk/includes/instadisc.php | |
parent | ff9420cbde416fa022b6726b643bbad3c2d38659 (diff) | |
download | instadisc-2c33a04e24aefdb75d35841f976875c693893973.tar.gz instadisc-2c33a04e24aefdb75d35841f976875c693893973.tar.bz2 instadisc-2c33a04e24aefdb75d35841f976875c693893973.zip |
Central: Moved to Series
Refs #28
Diffstat (limited to 'central/trunk/includes/instadisc.php')
-rw-r--r-- | central/trunk/includes/instadisc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 3f3922a..f35d021 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php | |||
@@ -277,4 +277,19 @@ function instaDisc_changePassword($username, $password) | |||
277 | $setpass2 = mysql_query($setpass); | 277 | $setpass2 = mysql_query($setpass); |
278 | } | 278 | } |
279 | 279 | ||
280 | function instaDisc_resolveSubscription($seriesURL, $id) | ||
281 | { | ||
282 | $client = new xmlrpc_client($seriesURL); | ||
283 | $msg = new xmlrpcmsg('InstaDisc.subscriptionInfo', array( new xmlrpcval($id, 'string'))); | ||
284 | $resp = $client->send($msg); | ||
285 | $val = $resp->value()->scalarVal(); | ||
286 | |||
287 | if ($val == 'false') | ||
288 | { | ||
289 | return 'false'; | ||
290 | } else { | ||
291 | return unserialize($val); | ||
292 | } | ||
293 | } | ||
294 | |||
280 | ?> | 295 | ?> |