From cfaf6e69bd956ccb7a46066f3176820346f96451 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 27 Feb 2011 15:50:06 -0500 Subject: Only show the you can monitor the filter reload process for filter related changes --- usr/local/www/guiconfig.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 7784a6e..3c576b9 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -418,8 +418,15 @@ function print_info_box($msg) { function get_std_save_message($ok) { global $d_sysrebootreqd_path; - - return "The changes have been applied successfully.
You can also monitor the filter reload progress."; + $filter_related = false; + $filter_pages = array("nat", "filter"); + $to_return = "The changes have been applied successfully."; + foreach($filter_pages as $fp) + if(stristr($_SERVER['SCRIPT_FILENAME'], $fp)) + $filter_related = true; + if($filter_related) + $to_return .= "
You can also monitor the filter reload progress."; + return $to_return; } function pprint_address($adr) { -- cgit v1.1