Revision 1cdca133
Added by Colin Smith about 20 years ago
usr/local/www/xmlrpc.php | ||
---|---|---|
45 | 45 |
// Exposed functions. |
46 | 46 |
|
47 | 47 |
$backup_config_section_doc = 'XMLRPC wrapper for backup_config_section. This method must be called with two parameters: a string containing the local system\'s password followed by a string containing the section to be backed up.'; |
48 |
$backup_config_section_sig = array(array(string, string, string));
|
|
48 |
$backup_config_section_sig = array(array($XML_RPC_String, $XML_RPC_String, $XML_RPC_String));
|
|
49 | 49 |
|
50 | 50 |
function backup_config_section_xmlrpc($raw_params) { |
51 | 51 |
$params = xmlrpc_params_to_php($raw_params); // Convert XML_RPC_Value objects to a PHP array of values. |
... | ... | |
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
$restore_config_section_doc = 'XMLRPC wrapper for restore_config_section. This method must be called with three parameters: a string containing the local system\'s password, a string containing the section to be restored, and a string containing the returned value of backup_config_section() for that section. This function returns true upon completion.'; |
58 |
$restore_config_section_sig = array(array(boolean, string, array(), array()));
|
|
58 |
$restore_config_section_sig = array(array($XML_RPC_Boolean, $XML_RPC_String, $XML_RPC_Array, $XML_RPC_Array));
|
|
59 | 59 |
|
60 | 60 |
function restore_config_section_xmlrpc($raw_params) { |
61 | 61 |
$params = xmlrpc_params_to_php($raw_params); |
... | ... | |
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
$filter_configure_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 returns true upon completion.'; |
72 |
$filter_configure_sig = array(array(boolean, string));
|
|
72 |
$filter_configure_sig = array(array($XML_RPC_Boolean, $XML_RPC_String));
|
|
73 | 73 |
|
74 | 74 |
function filter_configure_xmlrpc($raw_params) { |
75 | 75 |
$params = xmlrpc_params_to_php($raw_params); |
... | ... | |
79 | 79 |
} |
80 | 80 |
|
81 | 81 |
$check_firmware_version_doc = 'Basic XMLRPC wrapper for filter_configure. This function will return the output of check_firmware_version upon completion.'; |
82 |
$check_firmware_version_sig = array(array(string, string));
|
|
82 |
$check_firmware_version_sig = array(array($XML_RPC_String, $XML_RPC_String));
|
|
83 | 83 |
|
84 | 84 |
function check_firmware_version_xmlrpc($raw_params) { |
85 | 85 |
return new XML_RPC_Response(new XML_RPC_Value(check_firmware_version(false), 'string')); |
... | ... | |
87 | 87 |
|
88 | 88 |
|
89 | 89 |
$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.'; |
90 |
$auto_update_sig = array(array(boolean, string));
|
|
90 |
$auto_update_sig = array(array($XML_RPC_Boolean, $XML_RPC_String));
|
|
91 | 91 |
|
92 | 92 |
function auto_update_xmlrpc($raw_params) { |
93 | 93 |
$params = xmlrpc_params_to_php($raw_params); |
... | ... | |
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
$reboot_doc = 'Basic XMLRPC wrapper for rc.reboot.'; |
100 |
$reboot_sig = array(array(boolean, string));
|
|
100 |
$reboot_sig = array(array($XML_RPC_Boolean, $XML_RPC_String));
|
|
101 | 101 |
|
102 | 102 |
function reboot_xmlrpc($raw_params) { |
103 | 103 |
require_once("util.inc"); |
... | ... | |
107 | 107 |
return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean')); |
108 | 108 |
} |
109 | 109 |
|
110 |
$get_notices_sig = array(array(array(), string), array(array()));
|
|
110 |
$get_notices_sig = array(array($XML_RPC_Array, $XML_RPC_String), array($XML_RPC_Array));
|
|
111 | 111 |
function get_notices_xmlrpc($raw_params) { |
112 | 112 |
global $g; |
113 | 113 |
require_once("notices.inc"); |
Also available in: Unified diff
Update our XMLRPC server to work with the new security update. This cleans up several hacks resulting from poor documentation ;)