diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-28 10:10:37 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-28 10:10:37 -0500 |
commit | df95836a3e430d6472d1125d587a78c85e70600b (patch) | |
tree | 4150b9b7144d2d5fa9099296026ac4221207a8ce /src/usr | |
parent | e1515be91ebe2c95199482931ae9f85e164c611e (diff) | |
download | pfsense-df95836a3e430d6472d1125d587a78c85e70600b.zip pfsense-df95836a3e430d6472d1125d587a78c85e70600b.tar.gz |
ALternative to PR 2118/#5527
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/firewall_rules.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index 6177333..a1b02de 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -243,6 +243,21 @@ if (isset($_POST['del_x'])) { } } +$tab_array = array(array(gettext("Floating"), ("FloatingRules" == $if), "firewall_rules.php?if=FloatingRules")); + +foreach ($iflist as $ifent => $ifname) + $tab_array[] = array($ifname, ($ifent == $if), "firewall_rules.php?if={$ifent}"); + +foreach ($tab_array as $dtab) { + if($dtab[1]) { + $bctab = $dtab[0]; + break; + } +} + +$pgtitle = array(gettext("Firewall"), gettext("Rules"), $bctab); +$shortcut_section = "firewall"; + include("head.inc"); $nrules = 0; @@ -252,10 +267,7 @@ if ($savemsg) if (is_subsystem_dirty('filter')) print_info_box_np(gettext("The firewall rule configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."), "apply", "", true); -$tab_array = array(array(gettext("Floating"), ("FloatingRules" == $if), "firewall_rules.php?if=FloatingRules")); -foreach ($iflist as $ifent => $ifname) - $tab_array[] = array($ifname, ($ifent == $if), "firewall_rules.php?if={$ifent}"); display_top_tabs($tab_array); |