summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/firewall_rules.php')
-rw-r--r--src/usr/local/www/firewall_rules.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index aff201a..c917100 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -187,7 +187,7 @@ if ($_POST['act'] == "del") {
$mvnrows = -1;
move_separators($a_separators, $ridx, $mvnrows);
- if (write_config()) {
+ if (write_config(gettext("Firewall: Rules - deleted a firewall rule."))) {
mark_subsystem_dirty('filter');
}
@@ -223,7 +223,7 @@ if (isset($_POST['del_x'])) {
}
if ($deleted) {
- if (write_config()) {
+ if (write_config(gettext("Firewall: Rules - deleted selected firewall rules."))) {
mark_subsystem_dirty('filter');
}
}
@@ -235,10 +235,12 @@ if (isset($_POST['del_x'])) {
if ($a_filter[$_POST['id']]) {
if (isset($a_filter[$_POST['id']]['disabled'])) {
unset($a_filter[$_POST['id']]['disabled']);
+ $wc_msg = gettext('Firewall: Rules - enabled a firewall rule.');
} else {
$a_filter[$_POST['id']]['disabled'] = true;
+ $wc_msg = gettext('Firewall: Rules - disabled a firewall rule.');
}
- if (write_config()) {
+ if (write_config($wc_msg)) {
mark_subsystem_dirty('filter');
}
@@ -289,7 +291,7 @@ if (isset($_POST['del_x'])) {
}
}
- if (write_config()) {
+ if (write_config(gettext("Firewall: Rules - reordered firewall rules."))) {
mark_subsystem_dirty('filter');
}
@@ -330,7 +332,7 @@ if (is_subsystem_dirty('filter')) {
print_apply_box(gettext("The firewall rule configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
-display_top_tabs($tab_array, false, 'pills', "usepost");
+display_top_tabs($tab_array, false, 'pills');
$showantilockout = false;
$showprivate = false;
@@ -940,7 +942,7 @@ events.push(function() {
}
});
- // If so, change the icon to show the insetion point
+ // If so, change the icon to show the insertion point
if (ruleselected) {
if (e.shiftKey) {
$(this).removeClass().addClass("fa fa-lg fa-arrow-down text-danger");
OpenPOWER on IntegriCloud