diff options
Diffstat (limited to 'usr/local/www/progress.php')
-rwxr-xr-x | usr/local/www/progress.php | 14 |
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%"> |