mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow multicallish functionality in pfsense.restore_config_section.
This commit is contained in:
parent
f3df8b0a1f
commit
a52c8ce23c
@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user