blob: 60ada6a3db624ffb1778f34b73627e5dea9a167a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/* InstaDisc Series - A Four Project */
include('includes/instadisc.php');
function subscriptionInfo($id)
{
if (!instaDisc_subscriptionExists($id))
{
return new xmlrpcresp(new xmlrpcval('false', 'string'));
}
$sub = instaDisc_getSubscription($id);
return serialize(array( 'url' => $sub['url'],
'category' => $sub['category']
));
}
$s = new xmlrpc_server(array( "InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo')
), 0);
$s->functions_parameters_type = 'phpvals';
$s->service();
?>
|