aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_download_rules.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-12-12 18:22:53 -0800
committerrobiscool <robrob2626@yahoo.com>2009-12-12 18:22:53 -0800
commit5ec6d77ddbf7a8f7bb1dc4fd03e4abeaba358d4a (patch)
tree961f6fca69d2bf8776eccf89cc66a3758d99901a /config/snort-dev/snort_download_rules.php
parent170685ff702e1ea99a1cd39439e8370090f2d156 (diff)
downloadpfsense-packages-5ec6d77ddbf7a8f7bb1dc4fd03e4abeaba358d4a.tar.gz
pfsense-packages-5ec6d77ddbf7a8f7bb1dc4fd03e4abeaba358d4a.tar.bz2
pfsense-packages-5ec6d77ddbf7a8f7bb1dc4fd03e4abeaba358d4a.zip
snort-dev, add rule update copy func, add remove tmp dir
Diffstat (limited to 'config/snort-dev/snort_download_rules.php')
-rw-r--r--config/snort-dev/snort_download_rules.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php
index 576e0dff..83e11e05 100644
--- a/config/snort-dev/snort_download_rules.php
+++ b/config/snort-dev/snort_download_rules.php
@@ -183,7 +183,7 @@ include("/usr/local/www/head.inc");
function displaymessage()
{
- $.blockUI.defaults.message = "Please be patient ROB...";
+ $.blockUI.defaults.message = "Please be patient....";
$.blockUI({
@@ -1080,13 +1080,13 @@ if ($snort_md5_check_ok != on || $emerg_md5_check_chk_ok != on || $pfsense_md5_c
$config['installedpackages']['snortglobal']['last_rules_install'] = date("Y-M-jS-h:i-A");
/* remove old $tmpfname files */
-//if (file_exists("{$tmpfname}")) {
-// update_status(gettext("Cleaning up..."));
-// exec("/bin/rm -r /tmp/snort_rules_up");
-// sleep(2);
-// exec("/bin/rm -r {$snortdir}/rules_bk/rules/");
-// apc_clear_cache();
-//}
+if (file_exists("{$tmpfname}")) {
+ update_status(gettext("Cleaning up..."));
+ exec("/bin/rm -r /tmp/snort_rules_up");
+ sleep(2);
+ exec("/bin/rm -r {$snortdir}/rules_bk/rules/");
+ apc_clear_cache();
+}
/* php code to flush out cache some people are reportting missing files this might help */
sleep(2);