From 668c466767928ce0b29cd7bcc67226f360689e49 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 4 Aug 2011 18:03:09 +0000 Subject: Remove unused and problematic code --- config/snort/snort.inc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'config') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 65086621..0a7af0c3 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -705,10 +705,8 @@ function snort_snortloglimit_install_cron($should_install) { unset($config['cron']['item'][$x]); break; } - configure_cron(); } - /* func for updating cron */ function snort_rm_blocked_install_cron($should_install) { @@ -934,8 +932,7 @@ function sync_snort_package_remove_old() } /* make sure this func on writes to files and does not start snort */ -function sync_snort_package() -{ +function sync_snort_package() { global $config, $g; /* all new files are for the user snort nologin */ @@ -965,12 +962,6 @@ function sync_snort_package() exec('/bin/chmod -R 770 /var/log/snort'); exec('/bin/chmod -R 770 /usr/local/lib/snort'); exec('/bin/chmod -R 770 /usr/local/etc/snort/'); - - /* auto install loglimit dfault if value not set */ - $snortloglimitsize = $config['installedpackages']['snortglobal']['snortloglimitsize']; - $snortloglimit = $config['installedpackages']['snortglobal']['snortloglimit']; - - snort_snortloglimit_install_cron($config['installedpackages']['snortglobal']['snortloglimit'] == 'on' ? true : false); } /* only run when a single iface needs to sync */ -- cgit v1.2.3