about summary refs log tree commit diff stats
path: root/central/trunk/xmlrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/xmlrpc.php')
-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'))