diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-01 23:07:51 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-01 23:07:51 +0000 |
commit | a52c8ce23c2b5ddcaa3c44fb7408c361bd094e60 (patch) | |
tree | 03df569f0f204cfbb3c77a77a2af05a584a52237 /usr/local | |
parent | f3df8b0a1f723f751feb2057376f6b610adfe264 (diff) | |
download | pfsense-a52c8ce23c2b5ddcaa3c44fb7408c361bd094e60.zip pfsense-a52c8ce23c2b5ddcaa3c44fb7408c361bd094e60.tar.gz |
Allow multicallish functionality in pfsense.restore_config_section.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/xmlrpc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php index 878f971..78c8aab 100755 --- a/usr/local/www/xmlrpc.php +++ b/usr/local/www/xmlrpc.php @@ -106,8 +106,11 @@ $restore_config_section_sig = array(array(boolean, string, string, string)); function restore_config_section_xmlrpc($raw_params) { $params = xmlrpc_params_to_php($raw_params); + $i = 0; if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string')); - restore_config_section($params[0], $params[1]); + foreach($params[0] as $section) { + restore_config_section($section, $params[1][$i]); + } return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean')); } |