From 23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 5 Feb 2007 21:35:52 +0000 Subject: Add premium subscriber checkbox which appends _s to the url for people who subscribe to Snort.org --- packages/snort/snort.xml | 9 ++++++++- packages/snort/snort_download_rules.php | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/snort/snort.xml b/packages/snort/snort.xml index fadaec51..0e4dfdfe 100644 --- a/packages/snort/snort.xml +++ b/packages/snort/snort.xml @@ -33,7 +33,7 @@ /usr/local/www/ 077 http://www.pfsense.com/packages/config/snort/snort_rules_edit.php - + /usr/local/www/ 077 @@ -169,6 +169,13 @@ input 60 + + Snort.org subscriber + subscriber + Check this box if you are a Snort.org subscriber (premium rules). + checkbox + 60 + Block offenders blockoffenders diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index bb7b35b7..db241adb 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -176,7 +176,10 @@ if(!$oinkid) { ob_flush(); /* setup some variables */ -$snort_filename = "snortrules-snapshot-CURRENT.tar.gz"; +$premium_subscriber = ""; +if($config['installedpackages']['snortadvanced']['config'][0]['subscriber']) + $premium_subscriber = "_s"; +$snort_filename = "snortrules-snapshot-CURRENT{$premium_subscriber}.tar.gz"; $snort_filename_md5 = "snortrules-snapshot-CURRENT.tar.gz.md5"; $dl = "http://www.snort.org/pub-bin/oinkmaster.cgi/{$oinkid}/{$snort_filename}"; $dl_md5 = "http://www.snort.org/pub-bin/oinkmaster.cgi/{$oinkid}/{$snort_filename_md5}"; -- cgit v1.2.3