aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@scott-ullrichs-mac-pro.local>2009-02-09 15:50:18 -0500
committerScott Ullrich <sullrich@scott-ullrichs-mac-pro.local>2009-02-09 15:50:18 -0500
commit1a62cd67866048dc3df68765494c907611a2aebf (patch)
treec2d96587986eabe68f9c9b7ac99879326a682031
parent4332e8dc64ad349256aadc3d1c15a17ccc2f3c34 (diff)
downloadpfsense-packages-1a62cd67866048dc3df68765494c907611a2aebf.tar.gz
pfsense-packages-1a62cd67866048dc3df68765494c907611a2aebf.tar.bz2
pfsense-packages-1a62cd67866048dc3df68765494c907611a2aebf.zip
Set max_execution_time
-rw-r--r--config/snort/snort.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 4173b813..c5c11d0e 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -29,6 +29,10 @@
*/
require_once("pfsense-utils.inc");
+/* Allow additional execution time 0 = no limit. */
+ini_set('max_execution_time', '9999');
+ini_set('max_input_time', '9999');
+
/* define oinkid */
if($config['installedpackages']['snort'])
$oinkid = $config['installedpackages']['snort']['config'][0]['oinkmastercode'];
@@ -627,7 +631,14 @@ function extract_snort_rules_md5($tmpfname) {
$static_output = gettext("Extracting snort rules...");
update_all_status($static_output);
}
- exec("/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/");
+ $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/";
+ /* extract item and show status during extraction */
+ $handle = popen('$cmd 2>&1', 'r');
+ while(!feof($handle)) {
+ $read = fread($handle, 2096);
+ update_output_window($read);
+ }
+ pclose($handle);
if(!$console_mode) {
$static_output = gettext("Snort rules extracted.");
update_all_status($static_output);