aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-09 09:35:24 +0000
committerErmal <eri@pfsense.org>2012-07-09 09:35:24 +0000
commit40cace16a452cd841a6b3626c44ff0d0b655956f (patch)
tree0e9dbda2d0ad6c3996ca575a788c0c82adb872e7 /config/snort/snort_interfaces.php
parent27069169f67967c21cdcf38cef20fe81cfff9073 (diff)
downloadpfsense-packages-40cace16a452cd841a6b3626c44ff0d0b655956f.tar.gz
pfsense-packages-40cace16a452cd841a6b3626c44ff0d0b655956f.tar.bz2
pfsense-packages-40cace16a452cd841a6b3626c44ff0d0b655956f.zip
s//usr/local/etc/snort/snortdir/ to unify its reference and location. Trim some unused functions in the way
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 93b0050d..0d3ee8c1 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -35,7 +35,7 @@ require_once("guiconfig.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
require_once("/usr/local/pkg/snort/snort.inc");
-global $g;
+global $g, $snortdir;
$id = $_GET['id'];
if (isset($_POST['id']))
@@ -58,7 +58,7 @@ if (isset($_POST['del_x'])) {
Running_Stop($snort_uuid,$if_real, $rulei);
exec("/bin/rm -r /var/log/snort/snort_{$if_real}{$snort_uuid}");
- exec("/bin/rm -r /usr/local/etc/snort/snort_{$snort_uuid}_{$if_real}");
+ exec("/bin/rm -r {$snortdir}/snort_{$snort_uuid}_{$if_real}");
unset($a_nat[$rulei]);
}