From 4e2f40df2b494790efa5439578beaeaf26edbe12 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 05:20:51 +0000 Subject: Compare dates correctly --- packages/snort/snort_check_for_rule_updates.php | 2 +- packages/snort/snort_download_rules.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snort/snort_check_for_rule_updates.php b/packages/snort/snort_check_for_rule_updates.php index 40136f40..4127b514 100644 --- a/packages/snort/snort_check_for_rule_updates.php +++ b/packages/snort/snort_check_for_rule_updates.php @@ -40,7 +40,7 @@ $last_ruleset_download = $config['installedpackages']['snort']['last_ruleset_dow $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); if (preg_match_all("/.*RELEASED\: (.*)\ $date2ts or !$last_ruleset_download) { diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index 948b9f14..1bda5491 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -97,7 +97,7 @@ include("head.inc"); 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."; } else { /* get time stamps for comparison operations */ - $date1ts = strtotime($last_ruleset_download); + $date1ts = strtotime($last_update_date); $date2ts = strtotime($last_ruleset_download); /* is there a newer ruleset available? */ if($date1ts > $date2ts or !$last_ruleset_download) -- cgit v1.2.3