about summary refs log tree commit diff stats
path: root/update/library/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'update/library/trunk')
-rw-r--r--update/library/trunk/instadisc.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index 1162ac2..6e18d4f 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php
@@ -4,8 +4,6 @@
4 4
5include('xmlrpc/xmlrpc.inc'); 5include('xmlrpc/xmlrpc.inc');
6 6
7$idusUsername = array();
8$idusPassword = array();
9$idusSubscriptionSeriesURL = array(); 7$idusSubscriptionSeriesURL = array();
10$idusSubscriptionID = array(); 8$idusSubscriptionID = array();
11$idusSubscriptionTitle = array(); 9$idusSubscriptionTitle = array();
@@ -15,7 +13,7 @@ $instaDisc_subCount = 0;
15 13
16function instaDisc_sendItem($id, $title, $author, $url, $semantics) 14function instaDisc_sendItem($id, $title, $author, $url, $semantics)
17{ 15{
18 global $idusUsername, $idusPassword, $idusSubscriptionSeriesID, $idusSubscriptionID, $idusEncryptionKey; 16 global $idusSubscriptionSeriesID, $idusSubscriptionID, $idusEncryptionKey;
19 17
20 $encID = 0; 18 $encID = 0;
21 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt')) 19 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt'))
@@ -43,10 +41,7 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
43 $verID = rand(1,2147483647); 41 $verID = rand(1,2147483647);
44 42
45 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php'); 43 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php');
46 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername[$id], 'string'), 44 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusSubscriptionSeriesURL[$id], 'string'),
47 new xmlrpcval(md5($idusUsername[$id] . ":" . md5($idusPassword[$id]) . ":" . $verID), 'string'),
48 new xmlrpcval($verID, 'int'),
49 new xmlrpcval($idusSubscriptionSeriesURL[$id], 'string'),
50 new xmlrpcval($idusSubscriptionID[$id], 'string'), 45 new xmlrpcval($idusSubscriptionID[$id], 'string'),
51 new xmlrpcval($title, 'string'), 46 new xmlrpcval($title, 'string'),
52 new xmlrpcval($author, 'string'), 47 new xmlrpcval($author, 'string'),
@@ -67,11 +62,9 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
67 } 62 }
68} 63}
69 64
70function instaDisc_addSubscription($username, $password, $url, $id, $title, $category, $enc = '') 65function instaDisc_addSubscription($url, $id, $title, $category, $enc = '')
71{ 66{
72 global $instaDisc_subCount, $idusUsername, $idusPassword, $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusSubscriptionTitle, $idusSubscriptionCategory, $idusEncryptionKey; 67 global $instaDisc_subCount, $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusSubscriptionTitle, $idusSubscriptionCategory, $idusEncryptionKey;
73 $idusUsername[$instaDisc_subCount] = $username;
74 $idusPassword[$instaDisc_subCount] = $password;
75 $idusSubscriptionSeriesURL[$instaDisc_subCount] = $url; 68 $idusSubscriptionSeriesURL[$instaDisc_subCount] = $url;
76 $idusSubscriptionID[$instaDisc_subCount] = $id; 69 $idusSubscriptionID[$instaDisc_subCount] = $id;
77 $idusSubscriptionTitle[$instaDisc_subCount] = $title; 70 $idusSubscriptionTitle[$instaDisc_subCount] = $title;