aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_rules.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2011-07-20 12:20:00 -0700
committerrobiscool <robrob2626@yahoo.com>2011-07-20 12:20:00 -0700
commit80abed3392104169a83d7e8234a7614725f43d01 (patch)
tree4ab719860cb3397d63176442503f0dd7e1349761 /config/snort-dev/snort_rules.php
parentb698cb2d4d084078698045b844894eb5a8322f45 (diff)
downloadpfsense-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.php13
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 )
{