summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware_check.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 17:57:11 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 17:57:11 -0400
commita30afe0e594978996ad50e580e46fe87cb21605c (patch)
tree059fc66488b0cd7d9c4f93fcf51d5bfbc4453da5 /usr/local/www/system_firmware_check.php
parentb2a67b558c40c18a1519cd56cccaabd72e04f69d (diff)
downloadpfsense-a30afe0e594978996ad50e580e46fe87cb21605c.zip
pfsense-a30afe0e594978996ad50e580e46fe87cb21605c.tar.gz
Add checkbox to invoke full backup prior to upgrade
Diffstat (limited to 'usr/local/www/system_firmware_check.php')
-rwxr-xr-xusr/local/www/system_firmware_check.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php
index c0e9e1d..73e2f85 100755
--- a/usr/local/www/system_firmware_check.php
+++ b/usr/local/www/system_firmware_check.php
@@ -97,6 +97,9 @@ include("head.inc");
<!-- command output box -->
<textarea border='1' bordercolordark='#000000' bordercolorlight='#000000' cols='90' rows='9' name='output' id='output' wrap='hard'>
</textarea>
+ <div id='backupdiv' name='backupdiv' style='visibility:hidden'>
+ <br/><input type="checkbox" name='backupbeforeupgrade' id='backupbeforeupgrade'> <?=gettext("Perform full backup prior to upgrade");?>
+ </div>
</center>
<p>
<center><input id='invokeupgrade' style='visibility:hidden' type="submit" value="<?=gettext("Invoke Auto Upgrade"); ?>">
@@ -162,6 +165,8 @@ if ($needs_system_upgrade == false) {
}
echo "\n<script>$('invokeupgrade').style.visibility = 'visible';</script>";
+echo "\n<script>$('backupdiv').style.visibility = 'visible';</script>";
+
$txt = gettext("A new version is now available") . "\\n\\n";
$txt .= gettext("Current version") .": ". $current_installed_version . "\\n";
if ($g['platform'] == "nanobsd") {
OpenPOWER on IntegriCloud