diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 22:08:02 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-18 22:08:02 +0000 |
| commit | 9bf124f0e7ec5b6f6ff68649764c5d6fe39640b9 (patch) | |
| tree | 75a36f7c976f6950e844aee54e89135cdb7777d4 /update/library/trunk | |
| parent | c0151ba7bae99a1c389e2d8b309ebe53b368da1d (diff) | |
| download | instadisc-9bf124f0e7ec5b6f6ff68649764c5d6fe39640b9.tar.gz instadisc-9bf124f0e7ec5b6f6ff68649764c5d6fe39640b9.tar.bz2 instadisc-9bf124f0e7ec5b6f6ff68649764c5d6fe39640b9.zip | |
Update: Removed Series-related code
Refs #57
Diffstat (limited to 'update/library/trunk')
| -rw-r--r-- | update/library/trunk/instadisc.php | 15 |
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 | ||
| 5 | include('xmlrpc/xmlrpc.inc'); | 5 | include('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 | ||
| 12 | function instaDisc_sendItem($id, $title, $author, $url, $semantics) | 11 | function 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 | ||
| 63 | function instaDisc_addSubscription($url, $id, $enc = '') | 61 | function 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 | } |
