summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-07 17:07:00 +0000
committerColin Smith <colin@pfsense.org>2005-04-07 17:07:00 +0000
commit186359bf13385bedb49ec2df0e742e790e60c77e (patch)
tree7fb6c16fef2d6d34aa3a1293f964e02754eea5a5 /usr/local/www/xmlrpc.php
parentb35e23f2824c128b9eec58237c1098f8fcaba2de (diff)
downloadpfsense-186359bf13385bedb49ec2df0e742e790e60c77e.zip
pfsense-186359bf13385bedb49ec2df0e742e790e60c77e.tar.gz
Remove pfsense.auto_upgrade until fixed.
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 2989749..41093cc 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -125,22 +125,20 @@ function filter_configure_xmlrpc($raw_params) {
return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean'));
}
-$check_firmware_version_doc = 'Basic XMLRPC wrapper for filter_configure. This method must be called with one paramater: a string containing the local system\'s password. This function will return the output of check_firmware_version upon completion.'
+$check_firmware_version_doc = 'Basic XMLRPC wrapper for filter_configure. This function will return the output of check_firmware_version upon completion.';
$check_firmware_version_sig = array(array(string, string));
function check_firmware_version_xmlrpc($raw_params) {
- $params = xmlrpc_params_to_php($raw_params);
- if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'))
- return new XML_RPC_Response(new XML_RPC_Value(check_firmware_version(), 'string'));
+ return new XML_RPC_Response(new XML_RPC_Value(check_firmware_version(false), 'string'));
}
-$auto_update_doc = 'Basic XMLRPC wrapper for auto_update. This method must be called with one paramater: a string containing the local system\'s password. This function will return true upon completion.'
+$auto_update_doc = 'Basic XMLRPC wrapper for auto_update. This method must be called with one paramater: a string containing the local system\'s password. This function will return true upon completion.';
$auto_update_sig = array(array(boolean, string));
function auto_update_xmlrpc($raw_params) {
$params = xmlrpc_params_to_php($raw_params);
- if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'))
+ if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'));
auto_update();
return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean'));
}
@@ -158,10 +156,10 @@ $server = new XML_RPC_Server(
'docstring' => $filter_configure_doc),
'pfsense.check_firmware_version' => array('function' => 'check_firmware_version_xmlrpc',
'signature' => $check_firmware_version_sig,
- 'docstring' => $check_firmware_version_doc),
- 'pfsense.auto_update' => array('function' => 'auto_update_xmlrpc',
- 'signature' => $auto_update_sig,
- 'docstring' => $auto_update_doc)
+ 'docstring' => $check_firmware_version_doc)
+// 'pfsense.auto_update' => array('function' => 'auto_update_xmlrpc',
+// 'signature' => $auto_update_sig,
+// 'docstring' => $auto_update_doc)
)
);
?>
OpenPOWER on IntegriCloud