diff options
Diffstat (limited to 'update/library/trunk/instadisc.php')
| -rw-r--r-- | update/library/trunk/instadisc.php | 28 |
1 files changed, 28 insertions, 0 deletions
| diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php new file mode 100644 index 0000000..ef4638f --- /dev/null +++ b/update/library/trunk/instadisc.php | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | /* InstaDisc Update - A Four Island Project */ | ||
| 4 | |||
| 5 | include('xmlrpc/xmlrpc.inc'); | ||
| 6 | |||
| 7 | $idusUsername = ''; // Set this to the username you've registered | ||
| 8 | $idusPassword = ''; // Set this to the password you've registered | ||
| 9 | $idusCentralServer = ''; // Set this to the Central Server you've signed up with | ||
| 10 | $idusSubscriptionURI = ''; // Set this to your unique URI | ||
| 11 | |||
| 12 | function sendItem($title, $author, $url, $semantics) | ||
| 13 | { | ||
| 14 | $verID = rand(1,65536); | ||
| 15 | |||
| 16 | $client = new xmlrpc_client($idusCentralServer); | ||
| 17 | $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername, 'string'), | ||
| 18 | new xmlrpcval(md5($idusUsername + ":" + md5($idusPassword) + ":" + $verID), 'string'), | ||
| 19 | new xmlrpcval($verID, 'int'), | ||
| 20 | new xmlrpcval($idusSubscriptionURI, 'string'), | ||
| 21 | new xmlrpcval($title, 'string'), | ||
| 22 | new xmlrpcval($author, 'string'), | ||
| 23 | new xmlrpcval($url, 'string'), | ||
| 24 | new xmlrpcval($semantics, 'array')); | ||
| 25 | $client->send($msg); | ||
| 26 | } | ||
| 27 | |||
| 28 | ?> | ||
