diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-10 16:32:28 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-10 16:32:28 +0200 |
commit | 52b2726831c2f170b563ce7e579ffcaf24e17049 (patch) | |
tree | b7356c7dc78f16bc6bb73d248ac03b4066d952fe /etc/inc/filter_log.inc | |
parent | a6d5e0439da3945c77beeb5bab5956223973cc80 (diff) | |
download | pfsense-52b2726831c2f170b563ce7e579ffcaf24e17049.zip pfsense-52b2726831c2f170b563ce7e579ffcaf24e17049.tar.gz |
Added a setting for configuring the firewall log to either:
-Not load descriptions
-Show descriptions in a column
-Show descriptions on a second row (after a click on 'show descriptions')
'fixed' a few html validation issues..
Diffstat (limited to 'etc/inc/filter_log.inc')
-rw-r--r-- | etc/inc/filter_log.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc index 11adfae..2bfc895 100644 --- a/etc/inc/filter_log.inc +++ b/etc/inc/filter_log.inc @@ -248,15 +248,14 @@ function buffer_rules_clear() { function find_rule_by_number_buffer($rulenum, $type){ global $g, $buffer_rules_rdr, $buffer_rules_normal; - if ($type == "rdr") - { + if ($type == "rdr") { $ruleString = $buffer_rules_rdr["@".$rulenum]; //TODO: get the correct 'description' part of a RDR log line. currently just first 30 characters.. $rulename = substr($ruleString,0,30); } else { $ruleString = $buffer_rules_normal["@".$rulenum]; list(,$rulename,) = explode("\"",$ruleString); - $rulename = str_replace("USER_RULE: ","<img src=\"/themes/".$g['theme'].'/images/icons/icon_frmfld_user.png\" width="11" height="12" title="USER_RULE" alt="USER_RULE"/> ',$rulename); + $rulename = str_replace("USER_RULE: ",'<img src="/themes/'.$g['theme'].'/images/icons/icon_frmfld_user.png" width="11" height="12" title="USER_RULE" alt="USER_RULE"/> ',$rulename); } return "@".$rulenum." ".$rulename; } |