From 9fd2db22c7fe6cf765c971600909f7ae626f24a4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 05:35:37 +0000 Subject: Do not start a new table row, one has already been started. Do not center cell. --- packages/snort/snort_download_rules.php | 47 +++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index 1bda5491..b70fd41d 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -50,6 +50,7 @@ else include("head.inc"); ?> + @@ -75,43 +76,49 @@ include("head.inc"); "; - echo ""; - echo "
"; - echo ""; - echo ""; - echo "\n"; + echo ""; - echo ""; - echo "
"; + echo "
\n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo ""; + 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 ""; + echo "\n"; else - echo ""; + echo "\n"; } - echo ""; - echo " "; - echo "
\n"; $last_ruleset_download = $config['installedpackages']['snort']['last_ruleset_download']; + echo "
\n"; + echo " Getting release information from snort.org...\n"; + echo "
\n"; $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); + echo "\n"; if (preg_match_all("/.*RELEASED\: (.*)\
"; + echo "
\n"; if($last_update_date) - echo ""; + echo "\n"; if($last_ruleset_download) - echo ""; + echo "\n"; else - echo ""; + echo "\n"; echo "
Last snort.org rule update:{$last_update_date}
Last snort.org rule update:{$last_update_date}
You last updated the ruleset:{$last_ruleset_download}
You last updated the ruleset:{$last_ruleset_download}
You last updated the ruleset:NEVER
You last updated the ruleset:NEVER
"; if(!$oinkid) { - echo "
You must obtain an oinkid from snort.com and set its value in the Snort settings tab in order to start the download process.
You must obtain an oinkid from snort.com and set its value in the Snort settings tab in order to start the download process.
Press here to start download.
Press here to start download.
Your snort rulesets are up to date.
Your snort rulesets are up to date.
"; - echo "
"; - echo "
"; + echo "\n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; include("fend.inc"); exit; } -- cgit v1.2.3