From 2c33a04e24aefdb75d35841f976875c693893973 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 6 Sep 2008 22:22:05 +0000 Subject: Central: Moved to Series Refs #28 --- central/trunk/includes/instadisc.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'central/trunk/includes/instadisc.php') 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) $setpass2 = mysql_query($setpass); } +function instaDisc_resolveSubscription($seriesURL, $id) +{ + $client = new xmlrpc_client($seriesURL); + $msg = new xmlrpcmsg('InstaDisc.subscriptionInfo', array( new xmlrpcval($id, 'string'))); + $resp = $client->send($msg); + $val = $resp->value()->scalarVal(); + + if ($val == 'false') + { + return 'false'; + } else { + return unserialize($val); + } +} + ?> -- cgit 1.4.1