aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_rules_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-05 07:26:54 +0000
committerErmal <eri@pfsense.org>2011-08-05 07:36:16 +0000
commit9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613 (patch)
treeeab03a04d106f312aab386b2a399146d582e054f /config/snort/snort_rules_edit.php
parent485db6093026f0e997157a70ab463683f90ca88c (diff)
downloadpfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.tar.gz
pfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.tar.bz2
pfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.zip
Silence some command becuase they just spam the logs uselessly.
Diffstat (limited to 'config/snort/snort_rules_edit.php')
-rw-r--r--config/snort/snort_rules_edit.php34
1 files changed, 16 insertions, 18 deletions
diff --git a/config/snort/snort_rules_edit.php b/config/snort/snort_rules_edit.php
index 49356b4e..bac04f68 100644
--- a/config/snort/snort_rules_edit.php
+++ b/config/snort/snort_rules_edit.php
@@ -79,29 +79,28 @@ $delimiter = "\n";
//split the contents of the string file into an array using the delimiter
$splitcontents = explode($delimiter, $contents2);
-if($_POST['highlight'] <> "") {
- if($_POST['highlight'] == "yes" or
- $_POST['highlight'] == "enabled") {
- $highlight = "yes";
+if ($_POST) {
+ if($_POST['highlight'] <> "") {
+ if($_POST['highlight'] == "yes" or
+ $_POST['highlight'] == "enabled") {
+ $highlight = "yes";
+ } else {
+ $highlight = "no";
+ }
} else {
$highlight = "no";
}
-} else {
- $highlight = "no";
-}
-if($_POST['rows'] <> "")
- $rows = $_POST['rows'];
-else
- $rows = 1;
+ if($_POST['rows'] <> "")
+ $rows = $_POST['rows'];
+ else
+ $rows = 1;
-if($_POST['cols'] <> "")
- $cols = $_POST['cols'];
-else
- $cols = 66;
+ if($_POST['cols'] <> "")
+ $cols = $_POST['cols'];
+ else
+ $cols = 66;
-if ($_POST)
-{
if ($_POST['save']) {
/* get the changes */
@@ -114,7 +113,6 @@ if ($_POST)
@file_put_contents($file, implode($delimiter, $splitcontents));
echo "<script> window.close(); </script>";
- //header("Location: /snort/snort_view_edit.php?id=$id&openruleset=$file&ids=$ids");
exit;
}
}