diff options
Diffstat (limited to 'includes/common.php')
-rwxr-xr-x | includes/common.php | 8 |
1 files changed, 8 insertions, 0 deletions
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'])) | |||
47 | exit; | 47 | exit; |
48 | } | 48 | } |
49 | 49 | ||
50 | if (sd_isSpecialDay('April Fools Day') && ($_COOKIE['layout'] != '7')) | ||
51 | { | ||
52 | setcookie('layout', 7, time()+60*60*24*30, '/', '.fourisland.com'); | ||
53 | |||
54 | header('Location: ' . getRewriteURL()); | ||
55 | exit; | ||
56 | } | ||
57 | |||
50 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) | 58 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) |
51 | { | 59 | { |
52 | $usingIE = true; | 60 | $usingIE = true; |