about summary refs log tree commit diff stats
path: root/update
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-14 14:07:45 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-14 14:07:45 +0000
commitb20c87df8f9eed0c8e883efca9bf6e127f94b5ce (patch)
tree9f400cdc5b99c32f441d3ac1f52a123c770e955a /update
parentbdb53fe4d3ab160013deaa4f6102dd53a7822d51 (diff)
downloadinstadisc-b20c87df8f9eed0c8e883efca9bf6e127f94b5ce.tar.gz
instadisc-b20c87df8f9eed0c8e883efca9bf6e127f94b5ce.tar.bz2
instadisc-b20c87df8f9eed0c8e883efca9bf6e127f94b5ce.zip
Update: Reverted Series integration
Refs #55
Diffstat (limited to 'update')
-rw-r--r--update/library/trunk/instadisc.php29
1 files changed, 5 insertions, 24 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index 1b764f8..1fd249d 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php
@@ -6,18 +6,12 @@ include('xmlrpc/xmlrpc.inc');
6 6
7$idusSubscriptionSeriesURL = array(); 7$idusSubscriptionSeriesURL = array();
8$idusSubscriptionID = array(); 8$idusSubscriptionID = array();
9$idusSeriesUsername = array();
10$idusSeriesPassword = array();
11$idusSubscriptionURL = array();
12$idusSubscriptionTitle = array();
13$idusSubscriptionCategory = array();
14$idusSubscriptionPersonal = array();
15$idusEncryptionKey = array(); 9$idusEncryptionKey = array();
16$instaDisc_subCount = 0; 10$instaDisc_subCount = 0;
17 11
18function instaDisc_sendItem($id, $title, $author, $url, $semantics) 12function instaDisc_sendItem($id, $title, $author, $url, $semantics)
19{ 13{
20 global $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusSeriesUsername, $idusSeriesPassword, $idusSubscriptionURL, $idusSubscriptionTitle, $idusSubscriptionCategory, $idusSubscriptionPersonal, $idusEncryptionKey; 14 global $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusEncryptionKey;
21 15
22 $encID = 0; 16 $encID = 0;
23 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt')) 17 if (($idusEncryptionKey[$id] != '') && extension_loaded('mcrypt'))
@@ -44,16 +38,9 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
44 38
45 $verID = rand(1,2147483647); 39 $verID = rand(1,2147483647);
46 40
47 $client = new xmlrpc_client($idusSubscriptionSeriesURL[$id]); 41 $client = new xmlrpc_client('http://central.fourisland.com/xmlrpc.php');
48 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusSeriesUsername[$id], 'string'), 42 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusSubscriptionSeriesURL[$id], 'string'),
49 new xmlrpcval(md5($idusSeriesUsername[$id] . ':' . md5($idusSeriesPassword[$id]) . ':' . $verID), 'string'),
50 new xmlrpcval($verID, 'int'),
51 new xmlrpcval($idusSubscriptionSeriesURL[$id], 'string'),
52 new xmlrpcval($idusSubscriptionID[$id], 'string'), 43 new xmlrpcval($idusSubscriptionID[$id], 'string'),
53 new xmlrpcval($idusSubscriptionURL[$id], 'string'),
54 new xmlrpcval($idusSubscriptionTitle[$id], 'string'),
55 new xmlrpcval($idusSubscriptionCategory[$id], 'string'),
56 new xmlrpcval($idusSubscriptionPersonal[$id], 'string'),
57 new xmlrpcval($title, 'string'), 44 new xmlrpcval($title, 'string'),
58 new xmlrpcval($author, 'string'), 45 new xmlrpcval($author, 'string'),
59 new xmlrpcval($url, 'string'), 46 new xmlrpcval($url, 'string'),
@@ -73,17 +60,11 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics)
73 } 60 }
74} 61}
75 62
76function instaDisc_addSubscription($url, $id, $un, $pw, $sUrl, $title, $cat, $personal = '', $enc = '') 63function instaDisc_addSubscription($url, $id, $enc = '')
77{ 64{
78 global $instaDisc_subCount, $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusSeriesUsername, $idusSeriesPassword, $idusSubscriptionURL, $idusSubscriptionTitle, $idusSubscriptionCategory, $idusSubscriptionPersonal, $idusEncryptionKey; 65 global $instaDisc_subCount, $idusSubscriptionSeriesURL, $idusSubscriptionID, $idusEncryptionKey;
79 $idusSubscriptionSeriesURL[$instaDisc_subCount] = $url; 66 $idusSubscriptionSeriesURL[$instaDisc_subCount] = $url;
80 $idusSubscriptionID[$instaDisc_subCount] = $id; 67 $idusSubscriptionID[$instaDisc_subCount] = $id;
81 $idusSeriesUsername[$instaDisc_subCount] = $un;
82 $idusSeriesPassword[$instaDisc_subCount] = $pw;
83 $idusSubscriptionURL[$instaDisc_subCount] = $sUrl;
84 $idusSubscriptionTitle[$instaDisc_subCount] = $title;
85 $idusSubscriptionCategory[$instaDisc_subCount] = $cat;
86 $idusSubscriptionPersonal[$instaDisc_subCount] = ($personal != '' ? 'true' : 'false');
87 $idusEncryptionKey[$instaDisc_subCount] = $enc; 68 $idusEncryptionKey[$instaDisc_subCount] = $enc;
88 $instaDisc_subCount++; 69 $instaDisc_subCount++;
89} 70}