about summary refs log tree commit diff stats
path: root/update/library
diff options
context:
space:
mode:
Diffstat (limited to 'update/library')
-rw-r--r--update/library/trunk/instadisc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index 9f106c4..e36bad8 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php
@@ -11,11 +11,12 @@ $idusSubscriptionURI = ''; // Set this to your unique URI
11 11
12function instaDisc_sendItem($title, $author, $url, $semantics) 12function instaDisc_sendItem($title, $author, $url, $semantics)
13{ 13{
14 global $idusUsername, $idusPassword, $idusCentralServer, $idusSubscriptionURI;
14 $verID = rand(1,65536); 15 $verID = rand(1,65536);
15 16
16 $client = new xmlrpc_client($idusCentralServer); 17 $client = new xmlrpc_client($idusCentralServer);
17 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername, 'string'), 18 $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername, 'string'),
18 new xmlrpcval(md5($idusUsername + ":" + md5($idusPassword) + ":" + $verID), 'string'), 19 new xmlrpcval(md5($idusUsername + ":" . md5($idusPassword) . ":" . $verID), 'string'),
19 new xmlrpcval($verID, 'int'), 20 new xmlrpcval($verID, 'int'),
20 new xmlrpcval($idusSubscriptionURI, 'string'), 21 new xmlrpcval($idusSubscriptionURI, 'string'),
21 new xmlrpcval($title, 'string'), 22 new xmlrpcval($title, 'string'),