From a18b04d83bf1ab7b3f4a61d9e043a1520165c5af Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Wed, 3 Apr 2013 17:42:45 +0100 Subject: Tidy up "system_firmware_auto.php" XHTML Add closehead variable Move META and LINK tags into HEAD and manually close HEAD Tidy up the TABLE tag, move height and colspacing in to STYLE paramenter Update TD tag with correct background syntax Add CDATA sections to SCRIPT tag Move end BODY and end HTML tags to the end of the file, this helps reduce the error count from 600-1000+ as the scripts to update the progress bar are now within the BODY tag. --- usr/local/www/system_firmware_auto.php | 45 ++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index b2cba9f..49764c5 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -57,13 +57,14 @@ else if($_POST['backupbeforeupgrade']) touch("/tmp/perform_full_backup.txt"); +$closehead = false; $pgtitle = array(gettext("Diagnostics"),gettext("Firmware"),gettext("Auto Update")); include("head.inc"); ?> - - + + @@ -71,7 +72,7 @@ include("head.inc");
- +
- +
- +
-
-
- +
+ - + - +
- - - +
- -
+
+ +
-
-
+
-
@@ -126,9 +123,8 @@ include("head.inc");
+ - - $upgrade_latest_tgz_sha256) { update_output_window(gettext("Auto upgrade aborted.") . " \n\n" . gettext("Downloaded SHA256") . ": " . $downloaded_latest_tgz_sha256 . "\n\n" . gettext("Needed SHA256") . ": " . $upgrade_latest_tgz_sha256); } else { update_output_window($g['product_name'] . " " . gettext("is now upgrading.") . "\\n\\n" . gettext("The firewall will reboot once the operation is completed.")); - echo "\n"; + echo "\n"; mwexec_bg($external_upgrade_helper_text); } @@ -274,3 +274,6 @@ function read_body_firmware($ch, $string) { } ?> + + + -- cgit v1.1