about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--update/library/trunk/instadisc.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index 1fd249d..35b6a6f 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php
@@ -4,14 +4,13 @@
4 4
5include('xmlrpc/xmlrpc.inc'); 5include('xmlrpc/xmlrpc.inc');
6 6
7$idusSubscriptionSeriesURL = array(); 7$idusSubscriptionURL = array();
8$idusSubscriptionID = array();
9$idusEncryptionKey = array(); 8$idusEncryptionKey = array();
10$instaDisc_subCount = 0; 9$instaDisc_subCount = 0;
11 10
12function instaDisc_sendItem($id, $title, $author, $url, $semantics) 11function instaDisc_sendItem($id, $title, $author, $url, $semantics)
13{ 12{
14 global $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusEncryptionKey; 13 global $idusSubscriptionURL, $idusEncryptionKey;
15 14
16 $encID = 0; 15 $encID = 0;
17 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt')) 16 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt'))
@@ -39,8 +38,7 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
39 $verID = rand(1,2147483647); 38 $verID = rand(1,2147483647);
40 39
41 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php'); 40 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php');
42 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusSubscriptionSeriesURL[$id], 'string'), 41 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusSubscriptionURL[$id], 'string'),
43 new xmlrpcval($idusSubscriptionID[$id], 'string'),
44 new xmlrpcval($title, 'string'), 42 new xmlrpcval($title, 'string'),
45 new xmlrpcval($author, 'string'), 43 new xmlrpcval($author, 'string'),
46 new xmlrpcval($url, 'string'), 44 new xmlrpcval($url, 'string'),
@@ -60,11 +58,10 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
60 } 58 }
61} 59}
62 60
63function instaDisc_addSubscription($url, $id, $enc = '') 61function instaDisc_addSubscription($url, $enc = '')
64{ 62{
65 global $instaDisc_subCount, $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusEncryptionKey; 63 global $instaDisc_subCount, $idusSubscriptionURL, $idusEncryptionKey;
66 $idusSubscriptionSeriesURL[$instaDisc_subCount] = $url; 64 $idusSubscriptionURL[$instaDisc_subCount] = $url;
67 $idusSubscriptionID[$instaDisc_subCount] = $id;
68 $idusEncryptionKey[$instaDisc_subCount] = $enc; 65 $idusEncryptionKey[$instaDisc_subCount] = $enc;
69 $instaDisc_subCount++; 66 $instaDisc_subCount++;
70} 67}