diff options
Diffstat (limited to 'central')
| -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(); |
