diff options
author | robiscool <robrob2626@yahoo.com> | 2011-07-20 12:20:00 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2011-07-20 12:20:00 -0700 |
commit | 80abed3392104169a83d7e8234a7614725f43d01 (patch) | |
tree | 4ab719860cb3397d63176442503f0dd7e1349761 /config/snort-dev/snort_rules.php | |
parent | b698cb2d4d084078698045b844894eb5a8322f45 (diff) | |
download | pfsense-packages-80abed3392104169a83d7e8234a7614725f43d01.tar.gz pfsense-packages-80abed3392104169a83d7e8234a7614725f43d01.tar.bz2 pfsense-packages-80abed3392104169a83d7e8234a7614725f43d01.zip |
snort-dev, add missing files, cp SnortDBtmp to temp dir
Diffstat (limited to 'config/snort-dev/snort_rules.php')
-rw-r--r-- | config/snort-dev/snort_rules.php | 13 |
1 files changed, 1 insertions, 12 deletions
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 ) { |