aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_rules.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-06-03 21:16:31 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-06-03 21:16:31 -0400
commit7bf09620fc59e910d83f2691c6487a6cf0b615c2 (patch)
tree87331d6f12b288129b79d403f12f4a4aa1933cd4 /config/snort/snort_rules.php
parent2e1eeca3568419e2deccdba857eeba9d3e7164e8 (diff)
downloadpfsense-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/snort_rules.php')
-rwxr-xr-xconfig/snort/snort_rules.php7
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>