From 2267b1f065f8ea6f87a8c15ab5ef1e0ec92faaec Mon Sep 17 00:00:00 2001 From: robiscool Date: Thu, 29 Apr 2010 21:31:46 -0700 Subject: snort, fix line endings --- config/snort/snort_interfaces.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config/snort/snort_interfaces.php') diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php index e15ea12c..d9ecc333 100644 --- a/config/snort/snort_interfaces.php +++ b/config/snort/snort_interfaces.php @@ -29,16 +29,16 @@ POSSIBILITY OF SUCH DAMAGE. */ +/* TODO: redo check if snort is up */ + require_once("guiconfig.inc"); require_once("/usr/local/pkg/snort/snort_gui.inc"); require_once("/usr/local/pkg/snort/snort.inc"); - $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; - if (!is_array($config['installedpackages']['snortglobal']['rule'])) $config['installedpackages']['snortglobal']['rule'] = array(); @@ -50,7 +50,6 @@ $id_gen = count($config['installedpackages']['snortglobal']['rule']); $id_gen = '0'; } - /* alert file */ $d_snortconfdirty_path_ls = exec('/bin/ls /var/run/snort_conf_*.dirty'); -- cgit v1.2.3