aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-26 22:39:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-26 22:39:32 +0000
commit2af80ca7c76cfedee89a7a996d1bc0d3f6f3d2f7 (patch)
tree7b6deb2086924429442783bb1c27ec5cedfff89e
parent6d7fe8884c79de27fa9fa5b5a857b36c26712884 (diff)
downloadpfsense-packages-2af80ca7c76cfedee89a7a996d1bc0d3f6f3d2f7.tar.gz
pfsense-packages-2af80ca7c76cfedee89a7a996d1bc0d3f6f3d2f7.tar.bz2
pfsense-packages-2af80ca7c76cfedee89a7a996d1bc0d3f6f3d2f7.zip
Do not store ruleset selections in the coregui xml section, it will get overwritten.
-rw-r--r--packages/snort/snort.inc2
-rw-r--r--packages/snort/snort_rulesets.php6
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 " <input type='checkbox' name='toenable[]' value='$file' {$CHECKED} />";
echo "</td>";
echo "<td>";
- echo "{$file}";
+ echo "<a target='_new' href='edit.php?submit=Load&savetopath=" . urlencode($file) . "'>{$file}</a>";
echo "</td>";
//echo "<td>";
//echo "description";