From 7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 2 Aug 2008 14:03:52 +0000 Subject: Central: Added requestRetained() For some reason, this function was not implemented earlier with the rest of the XML-RPC interface. --- central/trunk/xmlrpc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'central/trunk') 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) return new xmlrpcresp(new xmlrpcval(1, "int")); } +function requestRetained($username, $verification, $veriicationID) +{ + if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) + { + $getitems = "SELECT * FROM inbox WHERE username = \"" . mysql_escape_string($username) . "\""; + $getitems2 = mysql_query($getitems); + $i=0; + while ($getitems3[$i] = mysql_fetch_array($getitems2)) + { + instaDisc_sendItem($username, $getitems3[$i]['itemID']); + $i++; + } + + return new xmlrpcresp(new xmlrpcval(0, "int")); + } + + return new xmlrpcresp(new xmlrpcval(1, "int")); +} + function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) -- cgit 1.4.1