From 13ca2fc32ee5ac5ec7f3da73b638b30bee28a192 Mon Sep 17 00:00:00 2001 From: robiscool Date: Mon, 23 Nov 2009 15:27:11 -0800 Subject: snort-dev, begin user testing and feed back, release the alpha package --- config/snort-dev/snort_interfaces_edit.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'config/snort-dev/snort_interfaces_edit.php') diff --git a/config/snort-dev/snort_interfaces_edit.php b/config/snort-dev/snort_interfaces_edit.php index 8d9def44..8467dfb4 100644 --- a/config/snort-dev/snort_interfaces_edit.php +++ b/config/snort-dev/snort_interfaces_edit.php @@ -119,7 +119,10 @@ if ($_POST["Submit"]) { // $input_errors[] = "The target port range must be an integer between 1 and 65535."; // } -// } +// if ($a_nat[$id]['performance'] == "lowmem") { +// $input_errors[] = "This is a test of error echecking"; +// } + /* check for overlaps */ foreach ($a_nat as $natent) { @@ -165,28 +168,26 @@ if ($_POST["Submit"]) { //create_snort_conf(); //create_barnyard2_conf(); - if ($pconfig['performance'] != "") { + if ($pconfig['interface'] != "") { sync_package_snort(); } - if ($pconfig['performance'] != "") { + if ($pconfig['interface'] != "") { header("Location: /snort/snort_interfaces_edit.php?id=$id"); }else{ touch($d_natconfdirty_path); - header("Location: /snort_interfaces.php"); + header("Location: /snort/snort_interfaces.php"); } exit; } } if ($_POST["Submit2"]) { - if ($pconfig['performance'] != "") { sync_package_snort(); sleep(1); exec("/bin/sh /usr/local/etc/rc.d/snort_{$id}{$if_real}.sh restart"); header("Location: /snort/snort_interfaces_edit.php?id=$id"); exit; - } } $pgtitle = "Snort: Interface: $id$if_real Settings Edit"; @@ -341,7 +342,7 @@ if($id != "")