diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-13 16:24:09 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-13 16:24:09 +0000 |
| commit | bdb53fe4d3ab160013deaa4f6102dd53a7822d51 (patch) | |
| tree | 70c3249055aec121bc2a8909f807e14b689a823f /update | |
| parent | 1ad668d889d1d8a5da93c25591793f5b2ccde121 (diff) | |
| download | instadisc-bdb53fe4d3ab160013deaa4f6102dd53a7822d51.tar.gz instadisc-bdb53fe4d3ab160013deaa4f6102dd53a7822d51.tar.bz2 instadisc-bdb53fe4d3ab160013deaa4f6102dd53a7822d51.zip | |
Update: Added initSubscription()
Refs #19
Diffstat (limited to 'update')
| -rw-r--r-- | update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php | 18 |
1 files changed, 14 insertions, 4 deletions
| diff --git a/update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php b/update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php index 7601c71..35271b2 100644 --- a/update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php +++ b/update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php | |||
| @@ -42,10 +42,6 @@ function instaDisc_sendItem(&$article, &$user, &$text, &$summary, &$minoredit, & | |||
| 42 | new xmlrpcval($verID, 'int'), | 42 | new xmlrpcval($verID, 'int'), |
| 43 | new xmlrpcval($instaDisc_seriesURL, 'string'), | 43 | new xmlrpcval($instaDisc_seriesURL, 'string'), |
| 44 | new xmlrpcval($instaDisc_subscriptionID, 'string'), | 44 | new xmlrpcval($instaDisc_subscriptionID, 'string'), |
| 45 | new xmlrpcval($instaDisc_subscriptionURL, 'string'), | ||
| 46 | new xmlrpcval($instaDisc_subscriptionTitle, 'string'), | ||
| 47 | new xmlrpcval('page-change', 'string'), | ||
| 48 | new xmlrpcval($instaDisc_subscriptionPersonal, 'string'), | ||
| 49 | new xmlrpcval($title, 'string'), | 45 | new xmlrpcval($title, 'string'), |
| 50 | new xmlrpcval($author, 'string'), | 46 | new xmlrpcval($author, 'string'), |
| 51 | new xmlrpcval($url, 'string'), | 47 | new xmlrpcval($url, 'string'), |
| @@ -93,3 +89,17 @@ function encryptString($td, $key, $string) | |||
| 93 | return $string; | 89 | return $string; |
| 94 | } | 90 | } |
| 95 | 91 | ||
| 92 | function instaDisc_initSubscription() | ||
| 93 | { | ||
| 94 | $client = new xmlrpc_client($instaDisc_seriesURL); | ||
| 95 | $msg = new xmlrpcmsg("InstaDisc.initSubscription", array( new xmlrpcval($instaDisc_seriesUsername, 'string'), | ||
| 96 | new xmlrpcval(md5($instaDisc_seriesUsername . ':' . md5($instaDisc_seriesPassword) . ':' . $verID), 'string'), | ||
| 97 | new xmlrpcval($verID, 'int'), | ||
| 98 | new xmlrpcval($instaDisc_seriesURL, 'string'), | ||
| 99 | new xmlrpcval($instaDisc_subscriptionID, 'string'), | ||
| 100 | new xmlrpcval($instaDisc_subscriptionURL, 'string'), | ||
| 101 | new xmlrpcval($instaDisc_subscriptionTitle, 'string'), | ||
| 102 | new xmlrpcval('page-change', 'string'), | ||
| 103 | new xmlrpcval($instaDisc_subscriptionPersonal, 'string'))); | ||
| 104 | $client->send($msg); | ||
| 105 | } | ||
