diff options
author | Ermal <eri@pfsense.org> | 2010-08-27 18:16:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-27 18:16:30 +0000 |
commit | dd0026b94f9a32527796f89c50977c6fb624998a (patch) | |
tree | 6c1b17a942506591acd1fc3d993746364a43d52f /usr | |
parent | 17a710031ba8a8c0f3c402cdec8311a993312f31 (diff) | |
download | pfsense-dd0026b94f9a32527796f89c50977c6fb624998a.zip pfsense-dd0026b94f9a32527796f89c50977c6fb624998a.tar.gz |
Ticket #695. Fix the advanced icon showing on firewall rules page.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 3a769b7..3a5beb1 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -71,6 +71,25 @@ function check_for_advanced_options(&$item) { $item_set .= "max-src-conn-rate {$item['max-src-conn-rate']} "; if($item['max-src-conn-rates']) $item_set .= "max-src-conn-rates {$item['max-src-conn-rates']} "; + if($item['gateway']) + $item_set .= "gateway {$item['gateway']} "; + if($item['dnpipe']) + $item_set .= "limiter {$item['dnpipe']} "; + if($item['pdnpipe']) + $item_set .= "limiter {$item['pdnpipe']} "; + if($item['l7container']) + $item_set .= "layer7 {$item['l7container']} "; + if($item['tag']) + $item_set .= "tag {$item['tag']} "; + if($item['tagged']) + $item_set .= "tagged {$item['tagged']} "; + if(isset($item['allowopts'])) + $item_set .= "allowopts "; + if(isset($item['disablereplyto'])) + $item_set .= "disable reply-to"; + if($item['tcpflags_any'] || $item['tcpflags1'] || $item['tcpflags2']) + $item_set .= "tcpflags set"; + return $item_set; } @@ -436,7 +455,7 @@ if($_REQUEST['undodrag']) { continue; if (isset($filterent['floating']) && "FloatingRules" != $if) continue; - $isadvset = check_for_advanced_options($filterent); + $isadvset = heck_for_advanced_options($filterent); if($isadvset) $advanced_set = "<img src=\"./themes/{$g['theme']}/images/icons/icon_advanced.gif\" title=\"" . gettext("advanced settings set") . ": {$isadvset}\" border=\"0\">"; else |