diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-02 14:03:52 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-02 14:03:52 +0000 |
commit | 7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424 (patch) | |
tree | ff6fc32f1feab410f7291422b763f19a5eb3f452 | |
parent | 5faa9dc81f3f7096c6fa1e08d9aa7268b616d097 (diff) | |
download | instadisc-7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424.tar.gz instadisc-7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424.tar.bz2 instadisc-7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424.zip |
Central: Added requestRetained()
For some reason, this function was not implemented earlier with the rest of the XML-RPC interface.
-rw-r--r-- | central/trunk/xmlrpc.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index c10002a..2c6b2e6 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
@@ -54,6 +54,25 @@ function resendItem($username, $verification, $verificationID, $id) | |||
54 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 54 | return new xmlrpcresp(new xmlrpcval(1, "int")); |
55 | } | 55 | } |
56 | 56 | ||
57 | function requestRetained($username, $verification, $veriicationID) | ||
58 | { | ||
59 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) | ||
60 | { | ||
61 | $getitems = "SELECT * FROM inbox WHERE username = \"" . mysql_escape_string($username) . "\""; | ||
62 | $getitems2 = mysql_query($getitems); | ||
63 | $i=0; | ||
64 | while ($getitems3[$i] = mysql_fetch_array($getitems2)) | ||
65 | { | ||
66 | instaDisc_sendItem($username, $getitems3[$i]['itemID']); | ||
67 | $i++; | ||
68 | } | ||
69 | |||
70 | return new xmlrpcresp(new xmlrpcval(0, "int")); | ||
71 | } | ||
72 | |||
73 | return new xmlrpcresp(new xmlrpcval(1, "int")); | ||
74 | } | ||
75 | |||
57 | function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) | 76 | function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) |
58 | { | 77 | { |
59 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) | 78 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) |