From bdb53fe4d3ab160013deaa4f6102dd53a7822d51 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 13 Sep 2008 16:24:09 +0000 Subject: Update: Added initSubscription() Refs #19 --- .../mediawiki/trunk/extensions/instadisc/instadisc.php | 18 ++++++++++++++---- 1 file 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, & new xmlrpcval($verID, 'int'), new xmlrpcval($instaDisc_seriesURL, 'string'), new xmlrpcval($instaDisc_subscriptionID, 'string'), - new xmlrpcval($instaDisc_subscriptionURL, 'string'), - new xmlrpcval($instaDisc_subscriptionTitle, 'string'), - new xmlrpcval('page-change', 'string'), - new xmlrpcval($instaDisc_subscriptionPersonal, 'string'), new xmlrpcval($title, 'string'), new xmlrpcval($author, 'string'), new xmlrpcval($url, 'string'), @@ -93,3 +89,17 @@ function encryptString($td, $key, $string) return $string; } +function instaDisc_initSubscription() +{ + $client = new xmlrpc_client($instaDisc_seriesURL); + $msg = new xmlrpcmsg("InstaDisc.initSubscription", array( new xmlrpcval($instaDisc_seriesUsername, 'string'), + new xmlrpcval(md5($instaDisc_seriesUsername . ':' . md5($instaDisc_seriesPassword) . ':' . $verID), 'string'), + new xmlrpcval($verID, 'int'), + new xmlrpcval($instaDisc_seriesURL, 'string'), + new xmlrpcval($instaDisc_subscriptionID, 'string'), + new xmlrpcval($instaDisc_subscriptionURL, 'string'), + new xmlrpcval($instaDisc_subscriptionTitle, 'string'), + new xmlrpcval('page-change', 'string'), + new xmlrpcval($instaDisc_subscriptionPersonal, 'string'))); + $client->send($msg); +} -- cgit 1.4.1