\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\: (.*)\", $text, $matches))
$last_update_date = trim($matches[1][0]);
echo "\n";
if($last_update_date)
echo "Last snort.org rule update: | {$last_update_date} | \n";
if($last_ruleset_download)
echo "You last updated the ruleset: | {$last_ruleset_download} | \n";
else
echo "You last updated the ruleset: | NEVER | \n";
echo " ";
if(!$oinkid) {
echo " |