diff --git a/index.php b/index.php index 3ac8edd..2c8615f 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,10 @@ +format('Y'); +$startDate = new DateTime("$currentYear-11-10"); +$endDate = new DateTime(($currentYear + 1) . '-03-01'); +$christmas = ($currentDate > $startDate && $currentDate < $endDate); +?> @@ -6,6 +13,9 @@
SECURITY WARNING
Please tell your site administrator to host their own snow script. Thank you.