From abcbe4f90a068074018a736cb6f63d09de30c3f2 Mon Sep 17 00:00:00 2001
From: bmeeks8
Date: Wed, 25 Sep 2013 17:36:42 -0400
Subject: Add reverse DNS lookup icon and fix dup Suppress List bug
---
config/snort/snort_alerts.php | 49 +++++++++++++++++++++++++++----------------
1 file changed, 31 insertions(+), 18 deletions(-)
(limited to 'config/snort')
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index 9082aaeb..0295ed2f 100755
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -90,8 +90,8 @@ function snort_add_supplist_entry($suppress) {
/* If no Suppress List is set for the interface, then create one with the interface name */
if (empty($a_instance[$instanceid]['suppresslistname']) || $a_instance[$instanceid]['suppresslistname'] == 'default') {
$s_list = array();
- $s_list['name'] = $a_instance[$instanceid]['interface'] . "suppress";
$s_list['uuid'] = uniqid();
+ $s_list['name'] = $a_instance[$instanceid]['interface'] . "suppress" . "_" . $s_list['uuid'];
$s_list['descr'] = "Auto-generated list for Alert suppression";
$s_list['suppresspassthru'] = base64_encode($suppress);
$a_suppress[] = $s_list;
@@ -247,7 +247,6 @@ if ($_POST['download']) {
readfile("$file");
@unlink("/tmp/{$file_name}");
}
-
header("Location: /snort/snort_alerts.php?instance={$instanceid}");
exit;
}
@@ -267,7 +266,7 @@ include_once("fbegin.inc");
/* refresh every 60 secs */
if ($pconfig['arefresh'] == 'on')
- echo "\n";
+ echo "\n";
?>
' . $pgtitle . '
';}
@@ -304,7 +303,7 @@ if ($pconfig['arefresh'] == 'on')
|
- |