diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-11 20:55:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-11 20:55:51 +0000 |
commit | 55ab363d155a0276962cbbb8def488844fc0629a (patch) | |
tree | 0a685ea751b85ff5ee5c724694689a7dd6394231 /usr | |
parent | 73ef871b3a113c7ce009672b93aa996bebb1d4be (diff) | |
download | pfsense-55ab363d155a0276962cbbb8def488844fc0629a.zip pfsense-55ab363d155a0276962cbbb8def488844fc0629a.tar.gz |
While updating the client with state count, memory usage, etc, check for new notices. If a new notice is found, redirect back so it can be shown.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/index.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 9b2c5c6..70f7c34 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -156,6 +156,7 @@ include("head.inc"); <center><img src="logobig.jpg"></center> <br> <?php + $found_notices = are_notices_pending(); print_notice_box(); if(file_exists("{$g["tmp_path"]}/filter_reloading")) @@ -382,6 +383,11 @@ While(!Connection_Aborted()) { echo "</script>\n"; + if(are_notices_pending() == true and $found_notices == false) { + /* found a notice, lets redirect so they can see the notice */ + $counter = 500; + } + /* * prevent user from running out of ram. * firefox and ie can be a bear on ram usage! |