The firewall is now rebooting."; $reboot_needed = true; } if(isset($config['captiveportal']['enable'])) { /* for some reason ipfw doesn't init correctly except on bootup sequence */ $savemsg = "The configuration has been restored.
The firewall is now rebooting."; $reboot_needed = true; } setup_serial_port(); if(is_interface_mismatch() == true) { touch("/var/run/interface_mismatch_reboot_needed"); $reboot_needed = false; header("Location: interfaces_assign.php"); exit; } } else { $input_errors[] = "The configuration could not be restored."; } } } } else { $input_errors[] = "The configuration could not be restored (file upload error)."; } } } if ($mode == "reinstallpackages") { header("Location: pkg_mgr_install.php?mode=reinstallall"); exit; } else if ($mode == "restore_ver") { $input_errors[] = "XXX - this feature may hose your config (do NOT backrev configs!) - billm"; if ($ver2restore <> "") { $conf_file = "{$g['cf_conf_path']}/bak/config-" . strtotime($ver2restore) . ".xml"; if (config_install($conf_file) == 0) { $reboot_needed = true; $savemsg = "The configuration has been restored. The firewall is now rebooting."; } else { $input_errors[] = "The configuration could not be restored."; } } else { $input_errors[] = "No version selected."; } } } } $id = rand() . '.' . time(); $mth = ini_get('upload_progress_meter.store_method'); $dir = ini_get('upload_progress_meter.file.filename_template'); $pgtitle = array("Diagnostics","Backup/restore"); include("head.inc"); ?>