From 09d8b2fd5028ce1b58ecafc57c11e8336db2a5ae Mon Sep 17 00:00:00 2001 From: robiscool Date: Wed, 31 Mar 2010 04:04:56 -0700 Subject: snort-dev, final test --- config/snort-dev/snort_download_rules.php | 33 ++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'config/snort-dev/snort_download_rules.php') diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php index dd2a22e8..b2bcb748 100644 --- a/config/snort-dev/snort_download_rules.php +++ b/config/snort-dev/snort_download_rules.php @@ -75,8 +75,15 @@ $emergingthreats = $config['installedpackages']['snortglobal']['emergingthreats' $if_mrule_dir = "/usr/local/etc/snort/rules"; $mfolder_chk = (count(glob("$if_mrule_dir/*")) === 0) ? 'empty' : 'full'; + +if (file_exists('/var/run/snort.conf.dirty')) { + $snort_dirty_d = 'stop'; +} + + + /* If no id show the user a button */ -if ($id_d == "" || $snort_emrging_info == "stop" || $snort_oinkid_info == "stop") { +if ($id_d == "" || $snort_emrging_info == "stop" || $snort_oinkid_info == "stop" || $snort_dirty_d == 'stop') { $pgtitle = "Services: Snort: Rule Updates"; @@ -85,6 +92,27 @@ include("./snort_fbegin.inc"); echo "

"; if($pfsense_stable == 'yes'){echo $pgtitle;} echo "

\n"; + + echo "\n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo "
\n"; + echo " \n"; + echo " "; + echo "
\n"; + echo "    \n"; + echo " NOTE:  Snort.org and Emergingthreats.net will go down from time to time. Please be patient.\n"; + echo "
\n"; + echo "
\n"; + echo "
\n"; + echo "\n"; + echo "\n
\n"; + /* make sure user has javascript on */ echo "