summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-01 23:07:51 +0000
committerColin Smith <colin@pfsense.org>2005-04-01 23:07:51 +0000
commita52c8ce23c2b5ddcaa3c44fb7408c361bd094e60 (patch)
tree03df569f0f204cfbb3c77a77a2af05a584a52237 /usr/local
parentf3df8b0a1f723f751feb2057376f6b610adfe264 (diff)
downloadpfsense-a52c8ce23c2b5ddcaa3c44fb7408c361bd094e60.zip
pfsense-a52c8ce23c2b5ddcaa3c44fb7408c361bd094e60.tar.gz
Allow multicallish functionality in pfsense.restore_config_section.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/xmlrpc.php5
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'));
}
OpenPOWER on IntegriCloud