aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-25 03:10:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-25 03:10:09 +0000
commit45d392d94368646a74961c2bede8267d9ab71884 (patch)
tree96339c9be25af795411e9dbdb0fe636dd3c5fa7b
parent63f9c373e60e1c38ecc03426ba742423cd9698e6 (diff)
downloadpfsense-packages-45d392d94368646a74961c2bede8267d9ab71884.tar.gz
pfsense-packages-45d392d94368646a74961c2bede8267d9ab71884.tar.bz2
pfsense-packages-45d392d94368646a74961c2bede8267d9ab71884.zip
Set oinkmaster code from package configuration
-rw-r--r--packages/snort/snort_download_rules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php
index 3558ee8b..322e3f5e 100644
--- a/packages/snort/snort_download_rules.php
+++ b/packages/snort/snort_download_rules.php
@@ -91,7 +91,8 @@ include("head.inc");
<?php
/* define oinkid */
-$oinkid = "";
+if($config['installedpackages']['snort'])
+ $oinkid = $config['installedpackages']['snort']['config'][0]['oinkmastercode'];
if(!$oinkid) {
$static_output = gettext("You must obtain an oinkid from snort.com and set its value in the Snort settings tab.");