From 80abed3392104169a83d7e8234a7614725f43d01 Mon Sep 17 00:00:00 2001 From: robiscool Date: Wed, 20 Jul 2011 12:20:00 -0700 Subject: snort-dev, add missing files, cp SnortDBtmp to temp dir --- config/snort-dev/snort_rules.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'config/snort-dev/snort_rules.php') diff --git a/config/snort-dev/snort_rules.php b/config/snort-dev/snort_rules.php index 31227319..4e8ba460 100644 --- a/config/snort-dev/snort_rules.php +++ b/config/snort-dev/snort_rules.php @@ -85,18 +85,7 @@ $snortRuleDir = '/usr/local/etc/snort/snortDBrules/DB/' . $rdbuuid; $workingFile = $snortRuleDir . '/rules/' . $rulefile; function load_rule_file($incoming_file, $splitcontents) -{ - - //read snort file - $filehandle = fopen($incoming_file, "r"); - - //read file into string, and get filesize - $contents = fread($filehandle, filesize($incoming_file)); - - //close handler - fclose ($filehandle); - - +{ $pattern = '/(^alert |^# alert )/'; foreach ( $splitcontents as $val ) { -- cgit v1.2.3