summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware_restorefullbackup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 20:27:28 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 20:27:28 -0400
commitb8bfcce55022da7095df386aee635d9f8fe24aa6 (patch)
tree815e42774e126d52e45c0d8b1841013c80b064a8 /usr/local/www/system_firmware_restorefullbackup.php
parente40d415ab308d7b718c874c130bc7392122e1d56 (diff)
downloadpfsense-b8bfcce55022da7095df386aee635d9f8fe24aa6.zip
pfsense-b8bfcce55022da7095df386aee635d9f8fe24aa6.tar.gz
Add option to not restore config.xml
Diffstat (limited to 'usr/local/www/system_firmware_restorefullbackup.php')
-rwxr-xr-xusr/local/www/system_firmware_restorefullbackup.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_restorefullbackup.php b/usr/local/www/system_firmware_restorefullbackup.php
index 651ef64..3d5a941 100755
--- a/usr/local/www/system_firmware_restorefullbackup.php
+++ b/usr/local/www/system_firmware_restorefullbackup.php
@@ -55,6 +55,9 @@ require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
+if($_POST['overwriteconfigxml'])
+ touch("/tmp/do_not_restore_config.xml");
+
if ($_POST['restorefile']) {
$filename = $_POST['restorefile'];
if(file_exists("/root/{$filename}")) {
@@ -124,6 +127,9 @@ include("head.inc");
?>
<tr>
<td width="78%" class="vtable" colspan="2">
+ &nbsp;<br/>
+ <input type="checkbox" name="overwriteconfigxml" id="overwriteconfigxml" CHECKED> do not restore config.xml.
+ <p/>
<input name="Restore" type="submit" class="formbtn" id="restore" value="<?=gettext("Restore"); ?>">
</td>
</tr>
OpenPOWER on IntegriCloud