Revert commit.

This commit is contained in:
Scott Ullrich 2005-08-20 03:06:22 +00:00
parent 8652a41098
commit 8b7c81d7fb

View File

@ -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');