diff options
author | Warren Baker <warren@decoy.co.za> | 2012-07-24 23:41:14 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-07-24 23:41:14 +0200 |
commit | 983fb4d2dea59f3867e4f50f9de5b9ac248e216d (patch) | |
tree | 70fa30a1f98aa8a732d3aa5334d24e6ca70f91ac /usr | |
parent | a5416de22195347b14dfdc8a07ac676b463c9ccc (diff) | |
download | pfsense-983fb4d2dea59f3867e4f50f9de5b9ac248e216d.zip pfsense-983fb4d2dea59f3867e4f50f9de5b9ac248e216d.tar.gz |
Handle when the tab is set to host or network that the IP tab should still be displayed
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_aliases.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php index 48115d2..4d46c1f 100755 --- a/usr/local/www/firewall_aliases.php +++ b/usr/local/www/firewall_aliases.php @@ -170,7 +170,7 @@ include("head.inc"); <?php $tab=($_REQUEST['tab'] == "" ? "ip" : preg_replace("/\W/","",$_REQUEST['tab'])); $tab_array = array(); - $tab_array[] = array(gettext("IP"),($tab=="ip"? true : false), "/firewall_aliases.php?tab=ip"); + $tab_array[] = array(gettext("IP"),($tab=="ip" ? true : ($tab=="host" ? true : ($tab == "network" ? true : false))), "/firewall_aliases.php?tab=ip"); $tab_array[] = array(gettext("Ports"), ($tab=="port"? true : false), "/firewall_aliases.php?tab=port"); $tab_array[] = array(gettext("Urls"), ($tab=="url"? true : false), "/firewall_aliases.php?tab=url"); $tab_array[] = array(gettext("All"), ($tab=="all"? true : false), "/firewall_aliases.php?tab=all"); @@ -203,6 +203,8 @@ include("head.inc"); $show_alias= true; break; case "ip": + case "host": + case "network": if (preg_match("/(host|network)/",$alias["type"])) $show_alias= true; break; |