summaryrefslogtreecommitdiffstats
path: root/usr/local/www/progress.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-14 21:49:40 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-14 21:49:40 -0400
commit1d333258dc840cfdfa91d4d5566a9189e0ead9fe (patch)
tree68da71aa2427e130ff8f7d4556c07314daa86afc /usr/local/www/progress.php
parent7ac5a4cb18367693e0a4c576cbcd907ee7d5ad67 (diff)
downloadpfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.zip
pfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.tar.gz
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
Diffstat (limited to 'usr/local/www/progress.php')
-rwxr-xr-xusr/local/www/progress.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr/local/www/progress.php b/usr/local/www/progress.php
index 2325c03..95aae82 100755
--- a/usr/local/www/progress.php
+++ b/usr/local/www/progress.php
@@ -1,4 +1,5 @@
-#!/usr/local/bin/php?php
+<?php
+
/* $Id$ */
include("guiconfig.inc");
@@ -8,7 +9,6 @@ if($config['theme'] <> "")
else
$g['theme'] = "pfsense";
-
$url = 'progress.php?UPLOAD_IDENTIFIER='. $_GET["UPLOAD_IDENTIFIER"] .'&e=1';
function nice_value($x) {
@@ -18,7 +18,6 @@ function nice_value($x) {
return sprintf("%.2fMB", $x/1000/1000);
}
-
$X = upload_progress_meter_get_info( $_GET["UPLOAD_IDENTIFIER"] );
if (!$X) {
@@ -29,7 +28,7 @@ if (!$X) {
echo ('<HTML><meta HTTP-EQUIV="Refresh" CONTENT="1; url='. $url .'"><BODY></BODY></HTML>');
}
-}else{
+} else {
$meter = sprintf("%.2f", $X['bytes_uploaded'] / $X['bytes_total'] * 100);
@@ -44,7 +43,7 @@ if (!$X) {
if ($X['bytes_total'] > 1 && $X['bytes_uploaded'] >= $X['bytes_total'] && $X['est_sec'] == 0) {
echo ('<HTML><BODY onLoad="window.close()"> UPLOAD completed!</BODY></HTML>');
- }else{
+ } else {
?>
@@ -78,11 +77,6 @@ if (!$X) {
<td width="5" height="15" background="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" align="top"></td>
</table>
-
-
-
-
-
<br>
<TABLE WIDTH="100%">
OpenPOWER on IntegriCloud