From 6a9022187263823f0adb20f83db9141522bf3e98 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Tue, 4 Jun 2013 20:13:15 -0400 Subject: Fix it so we return to selected category after page edits. --- config/snort/snort_rules.php | 60 +++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index 3475577c..1ce1c0c2 100755 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -192,6 +192,7 @@ if ($_GET['act'] == "toggle" && $_GET['ids'] && !empty($rules_map)) { /* Update the config.xml file. */ write_config(); + $_GET['openruleset'] = $currentruleset; header("Location: /snort/snort_rules.php?id={$id}&openruleset={$currentruleset}"); exit; } @@ -227,6 +228,7 @@ if ($_GET['act'] == "resetcategory" && !empty($rules_map)) { unset($a_rule[$id]['rule_sid_off']); write_config(); + $_GET['openruleset'] = $currentruleset; header("Location: /snort/snort_rules.php?id={$id}&openruleset={$currentruleset}"); exit; } @@ -240,6 +242,7 @@ if ($_GET['act'] == "resetall" && !empty($rules_map)) { /* Update the config.xml file. */ write_config(); + $_GET['openruleset'] = $currentruleset; header("Location: /snort/snort_rules.php?id={$id}&openruleset={$currentruleset}"); exit; } @@ -324,32 +327,6 @@ if ($savemsg) { ?> - -
@@ -435,8 +412,9 @@ h += 96; + title=""/> + +
" class="formbtn" - title=""/> - + + -- cgit v1.2.3