diff options
author | Ermal <eri@pfsense.org> | 2012-07-09 09:35:24 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-09 09:35:24 +0000 |
commit | 40cace16a452cd841a6b3626c44ff0d0b655956f (patch) | |
tree | 0e9dbda2d0ad6c3996ca575a788c0c82adb872e7 /config/snort/snort_interfaces_global.php | |
parent | 27069169f67967c21cdcf38cef20fe81cfff9073 (diff) | |
download | pfsense-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_global.php')
-rw-r--r-- | config/snort/snort_interfaces_global.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_interfaces_global.php b/config/snort/snort_interfaces_global.php index a650646c..c49390a1 100644 --- a/config/snort/snort_interfaces_global.php +++ b/config/snort/snort_interfaces_global.php @@ -38,7 +38,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; $d_snort_global_dirty_path = '/var/run/snort_global.dirty'; @@ -120,7 +120,7 @@ if (!$input_errors) { if ($_POST["Reset"]) { function snort_deinstall_settings() { - global $config, $g, $id, $if_real; + global $config, $g, $id, $if_real, $snortdir; exec("/usr/usr/bin/killall snort"); sleep(2); @@ -165,7 +165,7 @@ if ($_POST["Reset"]) { unset($config['installedpackages']['snortglobal']); /* remove all snort iface dir */ - exec('rm -r /usr/local/etc/snort/snort_*'); + exec("rm -r {$snortdir}/snort_*"); exec('rm /var/log/snort/*'); } |