diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 05:20:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 05:20:51 +0000 |
commit | 4e2f40df2b494790efa5439578beaeaf26edbe12 (patch) | |
tree | 94903a5b957cc6efe79c640dac855c6d48906ffe /packages | |
parent | 5d74aede64811b101f8e83cdedbbd400d90d02a4 (diff) | |
download | pfsense-packages-4e2f40df2b494790efa5439578beaeaf26edbe12.tar.gz pfsense-packages-4e2f40df2b494790efa5439578beaeaf26edbe12.tar.bz2 pfsense-packages-4e2f40df2b494790efa5439578beaeaf26edbe12.zip |
Compare dates correctly
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort_check_for_rule_updates.php | 2 | ||||
-rw-r--r-- | 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\: (.*)\</", $text, $matches)) $last_update_date = trim($matches[1][0]); -$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) { 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 "<tr><td colspan='2'>You must obtain an oinkid from snort.com and set its value in the Snort settings tab in order to start the download process.</td></tr>"; } 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) |