Revision 2f8d0729
Added by Bill Marquette about 20 years ago
usr/local/www/diag_confbak.php | ||
---|---|---|
28 | 28 |
POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
*/ |
30 | 30 |
|
31 |
|
|
32 |
if ($_GET['newver']) { |
|
33 |
$conf_file = "/cf/conf/backup/config-${_GET['newver']}.xml"; |
|
34 |
|
|
35 |
if (config_install($conf_file) == 0) { |
|
36 |
system_reboot(); |
|
37 |
$savemsg = "The configuration has been restored. The firewall is now rebooting."; |
|
38 |
} else { |
|
39 |
$input_errors[] = "The configuration could not be restored."; |
|
40 |
} |
|
41 |
} |
|
42 |
|
|
31 | 43 |
require("guiconfig.inc"); |
32 | 44 |
|
33 | 45 |
?> |
... | ... | |
44 | 56 |
include("fbegin.inc"); |
45 | 57 |
?> |
46 | 58 |
<p class="pgtitle">Diagnostics: Local Restore</p> |
59 |
<?php if ($savemsg) print_info_box($savemsg); ?> |
|
47 | 60 |
<br> |
48 | 61 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> |
49 | 62 |
<ul id="tabnav"> |
Also available in: Unified diff
Enable config restore