From 42d7efbec7932f35f99e6b35a2d191f959b4ac6a Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Mon, 8 Sep 2014 10:36:56 -0400 Subject: Add count of USER ENABLED & DISABLED rules to page summary. --- config/suricata/suricata_rules.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { $rulem) { foreach ($rulem as $k2 => $v) { $sid = suricata_get_sid($v['rule']); @@ -669,6 +669,7 @@ if ($savemsg) { $textse = ""; $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}"); ?> -- cgit v1.2.3