summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-26 21:00:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-26 21:00:25 +0000
commite2fa49620b620bb6d6fb57c71f320e69047b8f0f (patch)
tree15d5bc287289b0a827c171a88b33c277815dbe5e /usr/local/www/system_firmware.php
parent7fc09eb482549dc5bce047179dac030fe4890df3 (diff)
downloadpfsense-e2fa49620b620bb6d6fb57c71f320e69047b8f0f.zip
pfsense-e2fa49620b620bb6d6fb57c71f320e69047b8f0f.tar.gz
Add upload progress bar support to manual upgrade firmware
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index d6afe94..7204047 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -170,6 +170,12 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
else
$fwinfo = "Using alternate firmware URL, cannot determine if {$config['system']['alt_firmware_url']['firmware_base_url']}{$config['system']['alt_firmware_url']['firmware_filename']} is newer than current.";
}
+
+$id = rand() . '.' . time();
+
+$mth = ini_get('upload_progress_meter.store_method');
+$dir = ini_get('upload_progress_meter.file.filename_template');
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -234,7 +240,7 @@ print_info_box($sig_warning);
<br><br>
<strong>Firmware image file: </strong>&nbsp;<input name="ulfile" type="file" class="formfld">
<br><br>
- <input name="Submit" type="submit" class="formbtn" value="Upgrade firmware">
+ <input name="Submit" type="submit" class="formbtn" value="Upgrade firmware" onClick="window.open('progress.php?ulfile=<?=$id?>','UploadMeter','width=370,height=115', true); return true; ">
<?php endif; else: ?>
<strong>You must reboot the system before you can upgrade the firmware.</strong>
<?php endif; ?>
OpenPOWER on IntegriCloud