about summary refs log tree commit diff stats
path: root/central/trunk/includes/instadisc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/includes/instadisc.php')
-rw-r--r--central/trunk/includes/instadisc.php15
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
280function 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?>