+
0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_pf_info.php b/src/www/diag_pf_info.php
index 7fb6557e9..6bffe0e14 100644
--- a/src/www/diag_pf_info.php
+++ b/src/www/diag_pf_info.php
@@ -70,6 +70,7 @@ $( document ).ready(function() {
+
+
+
+
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/firewall_nat_1to1.php b/src/www/firewall_nat_1to1.php index 8df76e46c..f982d13f9 100644 --- a/src/www/firewall_nat_1to1.php +++ b/src/www/firewall_nat_1to1.php @@ -176,6 +176,9 @@ $main_buttons = array(
diff --git a/src/www/firewall_nat_1to1.php b/src/www/firewall_nat_1to1.php index 8df76e46c..f982d13f9 100644 --- a/src/www/firewall_nat_1to1.php +++ b/src/www/firewall_nat_1to1.php @@ -176,6 +176,9 @@ $main_buttons = array(
+
+
+
+
+
+
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/firewall_nat_out.php b/src/www/firewall_nat_out.php index 167b223a3..4163ea182 100644 --- a/src/www/firewall_nat_out.php +++ b/src/www/firewall_nat_out.php @@ -247,6 +247,9 @@ include("head.inc");
diff --git a/src/www/firewall_nat_out.php b/src/www/firewall_nat_out.php index 167b223a3..4163ea182 100644 --- a/src/www/firewall_nat_out.php +++ b/src/www/firewall_nat_out.php @@ -247,6 +247,9 @@ include("head.inc");
+
+
+
+
+EOFnp;
+}
+
+function is_service_enabled($service) {
+ global $config;
+
+ switch ($service) {
+ case 'firewall':
+ case 'filter':
+ return !isset($config['system']['disablefilter']);
+ default:
+ return false;
+ }
+}
+
+function print_service_disabled_banner($service) {
+ if (!is_service_enabled($service)) {
+ switch ($service) {
+ case 'firewall':
+ case 'filter':
+ print_warning_box(gettext(
+ "The firewall has globally been disabled and configured rules are currently not enforced. " .
+ "It can be enabled in the Firewall and NAT settings page."
+ ));
+ break;
+ }
+ }
+}
+
function get_std_save_message() {
global $d_sysrebootreqd_path;
$filter_related = false;
diff --git a/src/www/status_filter_reload.php b/src/www/status_filter_reload.php
index 09f1a7bb5..5f7745cf7 100644
--- a/src/www/status_filter_reload.php
+++ b/src/www/status_filter_reload.php
@@ -62,7 +62,7 @@ include("head.inc");
You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/guiconfig.inc b/src/www/guiconfig.inc
index 72bb6363f..caf699313 100644
--- a/src/www/guiconfig.inc
+++ b/src/www/guiconfig.inc
@@ -239,6 +239,42 @@ function print_info_box($msg)
EOFnp;
}
+function print_warning_box($msg) {
+ echo << {$msg}
+
+
-
+
0) print_input_errors($input_errors); ?>