summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-20 03:06:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-20 03:06:22 +0000
commit8b7c81d7fb84e9a1586c4aa41ffa7edfeb4f3272 (patch)
treeb0e5fc7f988e5f61a6461a50a55cb2eb92a7740a /usr
parent8652a4109815d989f1ec64e9863bfd80bf020e80 (diff)
downloadpfsense-8b7c81d7fb84e9a1586c4aa41ffa7edfeb4f3272.zip
pfsense-8b7c81d7fb84e9a1586c4aa41ffa7edfeb4f3272.tar.gz
Revert commit.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 16bc49d..51de8bc 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -34,6 +34,23 @@ $d_isfwfile = 1;
require_once("guiconfig.inc");
require_once("xmlrpc_client.inc");
+/* if upgrade in progress, alert user */
+if(file_exists($d_firmwarelock_path)) {
+ $pgtitle = "System: Firmware: Manual Update";
+ include("head.inc");
+ echo "<body link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">\n";
+ include("fbegin.inc");
+ echo "<p class=\"pgtitle\"><?=$pgtitle?></p>\n";
+ echo "<div>\n";
+ print_info_box("A upgrade is currently in progress.<p>The firewall will reboot when the operation is complete.");
+ echo "<center><img src='/themes/{$g['theme']}/images/icons/icon_fw-update.gif'>";
+ echo "</div>\n";
+ include("fend.inc");
+ echo "</body>";
+ echo "</html>";
+ exit;
+}
+
/* Handle manual upgrade */
if ($_POST && !file_exists($d_firmwarelock_path)) {
@@ -105,23 +122,6 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
}
}
-/* if upgrade in progress, alert user */
-if(file_exists($d_firmwarelock_path)) {
- $pgtitle = "System: Firmware: Manual Update";
- include("head.inc");
- echo "<body link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">\n";
- include("fbegin.inc");
- echo "<p class=\"pgtitle\"><?=$pgtitle?></p>\n";
- echo "<div>\n";
- print_info_box("A upgrade is currently in progress.<p>The firewall will reboot when the operation is complete.");
- echo "<center><img src='/themes/{$g['theme']}/images/icons/icon_fw-update.gif'>";
- echo "</div>\n";
- include("fend.inc");
- echo "</body>";
- echo "</html>";
- exit;
-}
-
/* upload progress bar id */
$id = rand() . '.' . time();
$mth = ini_get('upload_progress_meter.store_method');
OpenPOWER on IntegriCloud