From 6cb3a4525bc22cde82449ebef1c403bf5d4cf77b Mon Sep 17 00:00:00 2001 From: robiscool Date: Tue, 22 Dec 2009 18:15:04 -0800 Subject: snort-dev, add IE download fix headers, code speed ups --- config/snort-dev/snort_alerts.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'config/snort-dev') diff --git a/config/snort-dev/snort_alerts.php b/config/snort-dev/snort_alerts.php index 824ea27a..88b9bae8 100644 --- a/config/snort-dev/snort_alerts.php +++ b/config/snort-dev/snort_alerts.php @@ -112,6 +112,8 @@ if ($_POST['download']) { $file = "/tmp/snort_logs_{$save_date}.tar.gz"; header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n"); + header("Pragma: private"); // needed for IE + header("Cache-Control: private, must-revalidate"); // needed for IE header('Content-type: application/force-download'); header('Content-Transfer-Encoding: Binary'); header("Content-length: ".filesize($file)); @@ -309,7 +311,7 @@ include("head.inc"); include("fbegin.inc"); -if ($pconfig['arefresh'] == 'on') +if ($pconfig['arefresh'] == 'on' || $pconfig['arefresh'] == '') { echo "\n"; } @@ -334,8 +336,11 @@ echo "
- + @@ -416,8 +421,9 @@ echo " conf_mount_ro(); } - $logent = $anentries; - + $logent = $anentries; + + $alerts = file_get_contents('/var/log/snort/alert'); /* detect the alert file type */ if ($snortalertlogt == 'full') -- cgit v1.2.3
- Last Snort Alert Entries.    Latest Alert Entries Are Listed First. + + Last Alert Entries. + + Latest Alert Entries Are Listed First.