summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-07-24 23:41:14 +0200
committerWarren Baker <warren@decoy.co.za>2012-07-24 23:41:14 +0200
commit983fb4d2dea59f3867e4f50f9de5b9ac248e216d (patch)
tree70fa30a1f98aa8a732d3aa5334d24e6ca70f91ac /usr
parenta5416de22195347b14dfdc8a07ac676b463c9ccc (diff)
downloadpfsense-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-xusr/local/www/firewall_aliases.php4
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;
OpenPOWER on IntegriCloud