aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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";