diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-28 14:04:32 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-28 14:04:32 +0000 |
commit | dae781d96e462a035be3640e173fe3c428c75dd3 (patch) | |
tree | 2c4aea452a69086007324f634e2a83fe8f99e073 /central/trunk/xmlrpc.php | |
parent | f20ca875e0f276b7867f360de32e210cdac0f4ee (diff) | |
download | instadisc-dae781d96e462a035be3640e173fe3c428c75dd3.tar.gz instadisc-dae781d96e462a035be3640e173fe3c428c75dd3.tar.bz2 instadisc-dae781d96e462a035be3640e173fe3c428c75dd3.zip |
Central: Completed step 3
Refs #69
Diffstat (limited to 'central/trunk/xmlrpc.php')
-rw-r--r-- | central/trunk/xmlrpc.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 0254e66..2713bfe 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
@@ -127,13 +127,27 @@ function addSubscription($username, $verification, $verificationID, $subscriptio | |||
127 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 127 | return new xmlrpcresp(new xmlrpcval(1, "int")); |
128 | } | 128 | } |
129 | 129 | ||
130 | function downloadItemModeTest() | ||
131 | { | ||
132 | $fp = @fsockopen($_SERVER['REMOTE_ADDR'], 61200, $errno, $errstr); | ||
133 | if ($fp) | ||
134 | { | ||
135 | fwrite($fp, "InstaDisc Download Item Mode Test\r\n\r\n\r\n"); | ||
136 | fclose($fp); | ||
137 | return new xmlrpcresp(new xmlrpcval('0', 'int')); | ||
138 | } else { | ||
139 | return new xmlrpcresp(new xmlrpcval('1', 'int')); | ||
140 | } | ||
141 | } | ||
142 | |||
130 | $s = new xmlrpc_server( array( "InstaDisc.checkRegistration" => array("function" => "checkRegistration"), | 143 | $s = new xmlrpc_server( array( "InstaDisc.checkRegistration" => array("function" => "checkRegistration"), |
131 | "InstaDisc.deleteItem" => array("function" => "deleteItem"), | 144 | "InstaDisc.deleteItem" => array("function" => "deleteItem"), |
132 | "InstaDisc.resendItem" => array("function" => "resendItem"), | 145 | "InstaDisc.resendItem" => array("function" => "resendItem"), |
133 | "InstaDisc.requestRetained" => array("function" => "requestRetained"), | 146 | "InstaDisc.requestRetained" => array("function" => "requestRetained"), |
134 | "InstaDisc.sendFromUpdate" => array("function" => "sendFromUpdate"), | 147 | "InstaDisc.sendFromUpdate" => array("function" => "sendFromUpdate"), |
135 | "InstaDisc.deleteSubscription" => array("function" => "deleteSubscription"), | 148 | "InstaDisc.deleteSubscription" => array("function" => "deleteSubscription"), |
136 | "InstaDisc.addSubscription" => array("function" => "addSubscription") | 149 | "InstaDisc.addSubscription" => array("function" => "addSubscription"), |
150 | "InstaDisc.downloadItemModeTest" => array("function" => "downloadItemModeTest") | ||
137 | ),0); | 151 | ),0); |
138 | $s->functions_parameters_type = 'phpvals'; | 152 | $s->functions_parameters_type = 'phpvals'; |
139 | $s->service(); | 153 | $s->service(); |