From ff63238155a009eeb6e1a2a298a55b2875857b82 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 9 Feb 2009 19:12:53 -0500 Subject: Use exec() --- config/snort/snort.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index d8826ea9..5c70783b 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -633,14 +633,7 @@ function extract_snort_rules_md5($tmpfname) { } mkdir("/usr/local/etc/snort/rules/"); $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/rules/"; - /* extract item and show status during extraction */ - $handle = popen('$cmd 2>&1', 'r'); - while(!feof($handle)) { - $read .= fread($handle, 100); - update_output_window($read); - flush(); - } - pclose($handle); + exec($cmd); if(!$console_mode) { $static_output = gettext("Snort rules extracted."); update_all_status($static_output); -- cgit v1.2.3