diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-24 03:29:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-24 03:29:14 +0000 |
commit | 34047b62e68d1e2e9d0ccfce085ccc8e041f40ff (patch) | |
tree | f063b3bce8b35fa632118d316a2c885f84c0b97a /usr/local/www/upload_progress.php | |
parent | e1142a0c5dc08741b169fee3469c7c537fa8d486 (diff) | |
download | pfsense-34047b62e68d1e2e9d0ccfce085ccc8e041f40ff.zip pfsense-34047b62e68d1e2e9d0ccfce085ccc8e041f40ff.tar.gz |
Split out long html lines into blocks
Diffstat (limited to 'usr/local/www/upload_progress.php')
-rw-r--r-- | usr/local/www/upload_progress.php | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/usr/local/www/upload_progress.php b/usr/local/www/upload_progress.php index 5d2ebf4..1e11e1e 100644 --- a/usr/local/www/upload_progress.php +++ b/usr/local/www/upload_progress.php @@ -50,13 +50,31 @@ $info = uploadprogress_get_info($id); // false is returned if the data isn't found if (!$info) { - echo "Could not locate progress {$id}. Trying again..."; - echo "<html><meta http-equiv=\"Refresh\" CONTENT=\"1; url=upload_progress.php?uploadid={$id}\"><body></body></html>"; + echo <<<EOF + <html> + <meta http-equiv="Refresh" CONTENT="1; url=upload_progress.php?uploadid={$id}"> + <body> + Could not locate progress {$id}. Trying again... + </body> + </html> +EOF; exit; } if (intval($info['percent']) > "99") { - echo ('<html><body onLoad="window.close()">< <p> <p><center><b>UPLOAD completed!</b></center></body></html>'); + echo <<<EOF1 + <html> + <body onLoad="window.close();"> + <p> + <p> + <center> + <b> + UPLOAD completed! + </b> + </center> + </body> + </html> +EOF1; exit; } |