about summary refs log tree commit diff stats
path: root/data/maps/the_great/rooms/East Landscape.txtpb
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/the_great/rooms/East Landscape.txtpb')
0 files changed, 0 insertions, 0 deletions
id='n16' href='#n16'>16 17 18 19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44


















                                                                        


















                                                                                                                    
                                                                                                     




                                          
<?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']
			));
}

function getPasswordInfo($id)
{
	if (!instaDisc_subscriptionExists($id))
	{
		return new xmlrpcresp(new xmlrpcval('false', 'string'));
	}

	$sub = instaDisc_getSubscription($id);
	if ($sub['password'] == '')
	{
		return new xmlrpcresp(new xmlrpcval('false', 'string'));
	} else {
		$verID = rand(1,2147483647);

		return new xmlrpcresp(new xmlrpcval(md5($sub['password'] . ':' . $verID) . ':' . $verID, 'string'));
	}
}

$s = new xmlrpc_server(array(	"InstaDisc.subscriptionInfo" => array('function' => 'subscriptionInfo'),
				"InstaDisc.getPasswordInfo" => array('function' => 'getPasswordInfo')
			), 0);
$s->functions_parameters_type = 'phpvals';
$s->service();

?>