diff options
Diffstat (limited to 'config/snort-dev/snort_interfaces_edit.php')
-rw-r--r-- | config/snort-dev/snort_interfaces_edit.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/snort-dev/snort_interfaces_edit.php b/config/snort-dev/snort_interfaces_edit.php index 8467dfb4..410bb02b 100644 --- a/config/snort-dev/snort_interfaces_edit.php +++ b/config/snort-dev/snort_interfaces_edit.php @@ -119,9 +119,13 @@ 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"; -// } + if ($_POST['interface'] == $pconfig['interface']) { + $input_errors[] = "The {$pconfig['interface']} interface is in use. Please select another interface."; + } + + if ($pconfig['descr'] == "") { + $input_errors[] = "Please enter a description for your reference."; + } /* check for overlaps */ |