"; ?>
\n"; echo "\n"; } else { /* get time stamps for comparison operations */ $date1ts = strtotime($last_update_date); $date2ts = strtotime($last_ruleset_download); /* is there a newer ruleset available? */ if($date1ts > $date2ts or !$last_ruleset_download) echo "\n"; else echo "\n"; } echo "\n"; echo " \n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; if($last_ruleset_download) echo "\n"; else echo "\n"; echo "
\n"; $last_ruleset_download = $config['installedpackages']['snort']['last_ruleset_download']; echo "
\n"; echo " Getting release information from snort.org...\n"; echo "
\n"; ob_flush(); ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0)'); $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); echo "\n"; if (preg_match_all("/.*RELEASED\: (.*)\\n"; if($last_update_date) echo "
Last snort.org rule update:{$last_update_date}
You last updated the ruleset:{$last_ruleset_download}
You last updated the ruleset:NEVER
"; if(!$oinkid) { echo "
You must obtain an oinkid from snort.org and set its value in the Snort settings tab in order to start the download process.
Press here to start download.
Your snort rulesets are up to date.
\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; include("fend.inc"); exit; } ?>
/images/misc/progress_bar.gif' width='280' height='23' name='progressbar' id='progressbar' alt='' />

150) { update_output_window($text); update_progress_bar($downloadProgress); flush(); $counter = 0; } fwrite($fout, $string); return $length; } ?>