about summary refs log tree commit diff stats
path: root/update
diff options
context:
space:
mode:
Diffstat (limited to 'update')
-rw-r--r--update/plugin/mediawiki/trunk/extensions/instadisc/instadisc.php18
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
92function 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}