diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-06-03 21:16:31 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-06-03 21:16:31 -0400 |
commit | 7bf09620fc59e910d83f2691c6487a6cf0b615c2 (patch) | |
tree | 87331d6f12b288129b79d403f12f4a4aa1933cd4 /config/snort | |
parent | 2e1eeca3568419e2deccdba857eeba9d3e7164e8 (diff) | |
download | pfsense-packages-7bf09620fc59e910d83f2691c6487a6cf0b615c2.tar.gz pfsense-packages-7bf09620fc59e910d83f2691c6487a6cf0b615c2.tar.bz2 pfsense-packages-7bf09620fc59e910d83f2691c6487a6cf0b615c2.zip |
Add a rule counter for display at the bottom of page.
Diffstat (limited to 'config/snort')
-rwxr-xr-x | config/snort/snort_rules.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index 2ef529b9..3475577c 100755 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -496,6 +496,7 @@ h += 96; <tbody> <?php + $counter = 0; foreach ($rules_map as $k1 => $rulem) { foreach ($rulem as $k2 => $v) { $sid = snort_get_sid($v['rule']); @@ -576,6 +577,7 @@ h += 96; </td> </tr> <?php + $counter++; } } unset($rulem, $v); @@ -586,7 +588,10 @@ h += 96; </tr> <tr> <td> - <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="1"> + <table width="100%" border="0" cellspacing="0" cellpadding="1"> + <tr> + <td class="vexpl" colspan="2" height="30" valign="middle"><?php echo gettext("Rule Count: {$counter}"); ?></td> + </tr> <tr> <td width="16"><img src="../themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11"></td> |