diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-05 21:35:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-05 21:35:52 +0000 |
commit | 23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a (patch) | |
tree | 2b2ea6ae43ccf7d239e346875d9358b2dd550ac0 /packages | |
parent | 2b8918d80fa9ecd126bd2e1c0fd3b17808939ac7 (diff) | |
download | pfsense-packages-23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a.tar.gz pfsense-packages-23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a.tar.bz2 pfsense-packages-23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a.zip |
Add premium subscriber checkbox which appends _s to the url for people who subscribe to Snort.org
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.xml | 9 | ||||
-rw-r--r-- | packages/snort/snort_download_rules.php | 5 |
2 files changed, 12 insertions, 2 deletions
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 @@ <prefix>/usr/local/www/</prefix> <chmod>077</chmod> <item>http://www.pfsense.com/packages/config/snort/snort_rules_edit.php</item> - </additional_files_needed> + </additional_files_needed> <additional_files_needed> <prefix>/usr/local/www/</prefix> <chmod>077</chmod> @@ -170,6 +170,13 @@ <size>60</size> </field> <field> + <fielddescr>Snort.org subscriber</fielddescr> + <fieldname>subscriber</fieldname> + <description>Check this box if you are a Snort.org subscriber (premium rules).</description> + <type>checkbox</type> + <size>60</size> + </field> + <field> <fielddescr>Block offenders</fielddescr> <fieldname>blockoffenders</fieldname> <description>Checking this option will automatically block hosts that generate a snort alert.</description> 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}"; |