mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
"z" starts at 0. And $now = $_SERVER["REQUEST_TIME"] already
This commit is contained in:
@@ -44,8 +44,8 @@ switch($_SERVER["QUERY_STRING"]) {
|
||||
}
|
||||
|
||||
/* xmas season, december and the first week of January */
|
||||
$day = date("z", $_SERVER["REQUEST_TIME"]) - date("L", $now);
|
||||
if ($day < 7 || 365-$day < 32) {
|
||||
$day = date("z", $now) - date("L", $now);
|
||||
if ($day < 6 || 365-$day < 32) {
|
||||
$logos = array("./logos/php-xmas-2013.png");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user