diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-08 10:36:56 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-08 10:36:56 -0400 |
commit | 42d7efbec7932f35f99e6b35a2d191f959b4ac6a (patch) | |
tree | f42f5c9dbdd2715e2ef41ca6e37bcdc366cf23e3 /config/suricata | |
parent | 1d9c1cc8e530352168b97fd8b9c552c2588b67f4 (diff) | |
download | pfsense-packages-42d7efbec7932f35f99e6b35a2d191f959b4ac6a.tar.gz pfsense-packages-42d7efbec7932f35f99e6b35a2d191f959b4ac6a.tar.bz2 pfsense-packages-42d7efbec7932f35f99e6b35a2d191f959b4ac6a.zip |
Add count of USER ENABLED & DISABLED rules to page summary.
Diffstat (limited to 'config/suricata')
-rw-r--r-- | config/suricata/suricata_rules.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/suricata/suricata_rules.php b/config/suricata/suricata_rules.php index a787261d..539a1daf 100644 --- a/config/suricata/suricata_rules.php +++ b/config/suricata/suricata_rules.php @@ -641,7 +641,7 @@ if ($savemsg) { <tbody> <?php - $counter = $enable_cnt = $disable_cnt = $managed_count = 0; + $counter = $enable_cnt = $disable_cnt = $user_enable_cnt = $user_disable_cnt = $managed_count = 0; foreach ($rules_map as $k1 => $rulem) { foreach ($rulem as $k2 => $v) { $sid = suricata_get_sid($v['rule']); @@ -669,6 +669,7 @@ if ($savemsg) { $textse = "</span>"; $iconb = "icon_reject_d.gif"; $disable_cnt++; + $user_disable_cnt++; $title = gettext("Disabled by user. Click to toggle to enabled state"); } elseif (($v['disabled'] == 1) && (!isset($enablesid[$gid][$sid]))) { @@ -682,6 +683,7 @@ if ($savemsg) { $textss = $textse = ""; $iconb = "icon_reject.gif"; $enable_cnt++; + $user_enable_cnt++; $title = gettext("Enabled by user. Click to toggle to disabled state"); } else { @@ -771,6 +773,8 @@ if ($savemsg) { gettext("Total Rules: {$counter}") . " " . gettext("Enabled: {$enable_cnt}") . " " . gettext("Disabled: {$disable_cnt}") . " " . + gettext("User Enabled: {$user_enable_cnt}") . " " . + gettext("User Disabled: {$user_disable_cnt}") . " " . gettext("Auto-Managed: {$managed_count}"); ?></td> </tr> <tr> |