From 2af80ca7c76cfedee89a7a996d1bc0d3f6f3d2f7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 26 Sep 2006 22:39:32 +0000 Subject: Do not store ruleset selections in the coregui xml section, it will get overwritten. --- packages/snort/snort.inc | 2 +- packages/snort/snort_rulesets.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index e57e8df6..f8060f95 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -160,7 +160,7 @@ function generate_snort_conf() { fclose($whitelist); /* generate rule sections to load */ - $enabled_rulesets = $config['installedpackages']['snort']['config'][0]['rulesets']; + $enabled_rulesets = $config['installedpackages']['snort']['rulesets']; if($enabled_rulesets) { $selected_rules_sections = ""; $enabled_rulesets_array = split("\|\|", $enabled_rulesets); diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php index d99f5a5f..ff0afe9c 100644 --- a/packages/snort/snort_rulesets.php +++ b/packages/snort/snort_rulesets.php @@ -39,13 +39,13 @@ if($_POST) { $enabled_items .= "{$toenable}"; $isfirst = false; } - $config['installedpackages']['snort']['config'][0]['rulesets'] = $enabled_items; + $config['installedpackages']['snort']['rulesets'] = $enabled_items; write_config(); create_snort_conf(); $savemsg = "The snort ruleset selections have been saved."; } -$enabled_rulesets = $config['installedpackages']['snort']['config'][0]['rulesets']; +$enabled_rulesets = $config['installedpackages']['snort']['rulesets']; if($enabled_rulesets) $enabled_rulesets_array = split("\|\|", $enabled_rulesets); @@ -111,7 +111,7 @@ include("head.inc"); echo " "; echo ""; echo ""; - echo "{$file}"; + echo "{$file}"; echo ""; //echo ""; //echo "description"; -- cgit v1.2.3