about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-02 14:03:52 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-02 14:03:52 +0000
commit7aaf2ac13a6121938c679fd1edf0fa4fe1bb2424 (patch)
treeff6fc32f1feab410f7291422b763f19a5eb3f452
parent5faa9dc81f3f7096c6fa1e08d9aa7268b616d097 (diff)
downloadinstadisc-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.php19
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
57function 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
57function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) 76function 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'))