From e4059dcc97855a7f253b710095f31257f7ef7dcb Mon Sep 17 00:00:00 2001 From: robiscool Date: Mon, 7 Dec 2009 20:53:35 -0800 Subject: snort-dev, rule update code --- config/snort-dev/snort_download_rules.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'config/snort-dev') diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php index 952a4d4d..6d1160fc 100644 --- a/config/snort-dev/snort_download_rules.php +++ b/config/snort-dev/snort_download_rules.php @@ -56,19 +56,18 @@ $last_rules_install = $config['installedpackages']['snortglobal']['last_rules_in $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 == "" ) +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 == "" ) +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 ($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 == "" || $snort_$emrging_info = "stop") { +if ($id_d == "" || $snort_emrging_info == "stop") { $pgtitle = "Services: Snort: Update Rules"; @@ -118,8 +117,13 @@ echo "\n \n \n

\n -# The rules directory is empty. /usr/local/etc/snort/snort_{$id}{$if_real}/rules
\n - \n +# The rules directory is empty. /usr/local/etc/snort/rules

\n"; + +if ($snort_emrging_info == "stop") { +echo "WARNING:   Click on the \"Global Settings\" TAB and select ether snort.org or enmergingthreats.net rules to download.

\n"; +} + +echo " \n \n \n \n @@ -134,9 +138,6 @@ echo "\n if ($id_d == "") echo "Click on the \"Update Rules\" button to start the updates.

\n"; -if ($snort_$emrging_info = "stop") -echo "Click on the \"Global Settings\" TAB and select ether snort.org or enmergingthreats.net rules to download.

\n"; - if ($config['installedpackages']['snortglobal']['last_md5_download'] != "") echo "The last time the updates were started $last_md5_download.

\n"; -- cgit v1.2.3