diff --git a/src/etc/inc/xmlparse.inc b/src/etc/inc/xmlparse.inc index 6bd40f876..d9d6ef744 100644 --- a/src/etc/inc/xmlparse.inc +++ b/src/etc/inc/xmlparse.inc @@ -132,11 +132,6 @@ function parse_xml_config($cffile, $rootobj, $isstring = "false") { global $listtags; $listtags = listtags(); - if (isset($GLOBALS['custom_listtags'])) { - foreach($GLOBALS['custom_listtags'] as $tag) { - $listtags[$tag] = $tag; - } - } return parse_xml_config_raw($cffile, $rootobj, $isstring); } @@ -268,18 +263,6 @@ function dump_xml_config_sub($arr, $indent) return $xmlconfig; } -function dump_xml_config($arr, $rootobj) -{ - global $listtags; - $listtags = listtags(); - if (isset($GLOBALS['custom_listtags'])) { - foreach($GLOBALS['custom_listtags'] as $tag) { - $listtags[$tag] = $tag; - } - } - return dump_xml_config_raw($arr, $rootobj); -} - function dump_xml_config_raw($arr, $rootobj) { $xmlconfig = "\n"; @@ -288,4 +271,3 @@ function dump_xml_config_raw($arr, $rootobj) $xmlconfig .= "$rootobj>\n"; return $xmlconfig; } -?> diff --git a/src/www/diag_backup.php b/src/www/diag_backup.php index 2d4f333ec..e37130814 100644 --- a/src/www/diag_backup.php +++ b/src/www/diag_backup.php @@ -86,24 +86,6 @@ function restore_config_section($section_name, $new_contents) return true; } -/* - * backup_config_section($section): returns as an xml file string of - * the configuration section - */ -function backup_config_section($section_name) -{ - global $config; - - $new_section = &$config[$section_name]; - - $xmlconfig = dump_xml_config($new_section, $section_name); - $xmlconfig = str_replace("", "", $xmlconfig); - - /* KEEP THIS: unbreaks syntax highlighting "; $data = str_replace($closing_tag, $rrd_data_xml . $closing_tag, $data); @@ -340,7 +311,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { convert_config(); } filter_configure(); - $savemsg = gettext("The configuration area has been restored. You may need to reboot the firewall."); + $savemsg = gettext("The configuration area has been restored. You should reboot the firewall."); } } else { /* restore the entire configuration */ @@ -539,15 +510,6 @@ $( document ).ready(function() { $("#decrypt_opts").addClass("hidden"); } }); - - $("#backuparea").change(function(event){ - if ($("#backuparea").val() == "rrddata") { - $("#dotnotbackuprrd").prop('disabled', true); - } else { - $("#dotnotbackuprrd").prop('disabled', false); - } - }); - }); //]]> @@ -576,18 +538,6 @@ $( document ).ready(function() {