diff options
author | robiscool <robrob2626@yahoo.com> | 2009-12-07 19:27:05 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-12-07 19:27:05 -0800 |
commit | 96616c4b3caaaeefe31c58973e71fc9ab287a475 (patch) | |
tree | f53f13925c244dccf0e976e4ceb564aca72055f1 /config/snort-dev/snort_download_rules.php | |
parent | 7438d8fead4428b25ac26d9d62214cc27d3ddf62 (diff) | |
download | pfsense-packages-96616c4b3caaaeefe31c58973e71fc9ab287a475.tar.gz pfsense-packages-96616c4b3caaaeefe31c58973e71fc9ab287a475.tar.bz2 pfsense-packages-96616c4b3caaaeefe31c58973e71fc9ab287a475.zip |
snort-dev, download rules code
Diffstat (limited to 'config/snort-dev/snort_download_rules.php')
-rw-r--r-- | config/snort-dev/snort_download_rules.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php index d7b58c39..952a4d4d 100644 --- a/config/snort-dev/snort_download_rules.php +++ b/config/snort-dev/snort_download_rules.php @@ -53,8 +53,22 @@ if (isset($_POST['id_d'])) $last_md5_download = $config['installedpackages']['snortglobal']['last_md5_download']; $last_rules_install = $config['installedpackages']['snortglobal']['last_rules_install']; +$snort_rule_d_chk = $config['installedpackages']['snortglobal']['snortdownload']; +$emrging_rule_d_chk = $config['installedpackages']['snortglobal']['emergingthreats']; + +if ($snort_rule_d_chk != premium || $snort_rule_d_chk == "" ) + $snort_rule_d_info = "no"; + +if ($emrging_rule_d_chk != on || $emrging_rule_d_chk == "" ) + $emrging_rule_d_info = "no"; + +if ($snort_rule_d_info == "no" && $emrging_rule_d_info = "no") + $snort_$emrging_info = "stop"; + + + /* If no id show the user a button */ -if ($id_d == "") { +if ($id_d == "" || $snort_$emrging_info = "stop") { $pgtitle = "Services: Snort: Update Rules"; @@ -117,8 +131,12 @@ echo "</td>\n \n <p>\n\n"; +if ($id_d == "") echo "Click on the <strong>\"Update Rules\"</strong> button to start the updates. <br><br> \n"; +if ($snort_$emrging_info = "stop") +echo "Click on the <strong>\"Global Settings\"</strong> TAB and select ether snort.org or enmergingthreats.net rules to download. <br><br> \n"; + if ($config['installedpackages']['snortglobal']['last_md5_download'] != "") echo "The last time the updates were started <strong>$last_md5_download</strong>. <br><br> \n"; |