Permalink
Browse files

firewall_alises.php - include all tab to preserve the old behavior

  • Loading branch information...
1 parent 0f89c12 commit d0df92dc8cd99a13b1277b377f007fb0e811e644 @marcelloc committed Jun 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 usr/local/www/firewall_aliases.php
@@ -171,6 +171,7 @@ function find_alias_reference($section, $field, $origname, &$is_alias_referenced
$tab_array[] = array(gettext("IP"),($tab=="ip"? 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");
display_top_tabs($tab_array);
?>
@@ -196,6 +197,9 @@ function find_alias_reference($section, $field, $origname, &$is_alias_referenced
foreach ($a_aliases as $i=> $alias){
unset ($show_alias);
switch ($tab){
+ case "all":
+ $show_alias= true;
+ break;
case "ip":
if (preg_match("/(host|network)/",$alias["type"]))
$show_alias= true;

0 comments on commit d0df92d

Please sign in to comment.