From 44c3bc48b5db7b3dc6517d2b073a55af5d4b52db Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 10 Sep 2008 21:06:49 +0000 Subject: Series: Moved around directory structure Refs #55 --- series/core/trunk/xmlrpc.php | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 series/core/trunk/xmlrpc.php (limited to 'series/core/trunk/xmlrpc.php') diff --git a/series/core/trunk/xmlrpc.php b/series/core/trunk/xmlrpc.php deleted file mode 100644 index 01664ad..0000000 --- a/series/core/trunk/xmlrpc.php +++ /dev/null @@ -1,44 +0,0 @@ - $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(); - -?> -- cgit 1.4.1