mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Enable config restore
This commit is contained in:
parent
96caa2a84e
commit
2f8d0729be
@ -28,6 +28,18 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
if ($_GET['newver']) {
|
||||
$conf_file = "/cf/conf/backup/config-${_GET['newver']}.xml";
|
||||
|
||||
if (config_install($conf_file) == 0) {
|
||||
system_reboot();
|
||||
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
|
||||
} else {
|
||||
$input_errors[] = "The configuration could not be restored.";
|
||||
}
|
||||
}
|
||||
|
||||
require("guiconfig.inc");
|
||||
|
||||
?>
|
||||
@ -44,6 +56,7 @@ require("guiconfig.inc");
|
||||
include("fbegin.inc");
|
||||
?>
|
||||
<p class="pgtitle">Diagnostics: Local Restore</p>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<br>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td>
|
||||
<ul id="tabnav">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user