From ec5b2499fff7cd30e1c221dbd63b37ef507d41b8 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 28 Mar 2010 09:42:25 -0400 Subject: Added April Fools Day joke --- includes/common.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes/common.php') diff --git a/includes/common.php b/includes/common.php index 1239c68..8ca6958 100755 --- a/includes/common.php +++ b/includes/common.php @@ -47,6 +47,14 @@ if (isset($_GET['layout'])) exit; } +if (sd_isSpecialDay('April Fools Day') && ($_COOKIE['layout'] != '7')) +{ + setcookie('layout', 7, time()+60*60*24*30, '/', '.fourisland.com'); + + header('Location: ' . getRewriteURL()); + exit; +} + if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) { $usingIE = true; -- cgit 1.4.1