diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 00:19:02 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 00:19:02 +0000 |
| commit | 13263b90fa105971aba997b2ca39180f889533ef (patch) | |
| tree | 997d3ff2f913c73130a6122bdf7cc71bf9c88d5e /update/library/trunk/instadisc.php | |
| parent | c8f58a7ad8b809a14c861f8bf57c8c822cc4545c (diff) | |
| download | instadisc-13263b90fa105971aba997b2ca39180f889533ef.tar.gz instadisc-13263b90fa105971aba997b2ca39180f889533ef.tar.bz2 instadisc-13263b90fa105971aba997b2ca39180f889533ef.zip | |
Update Server: Added XML-RPC to Library
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 | ?> | ||
