summary refs log tree commit diff stats
path: root/includes/common.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2010-03-28 09:42:25 -0400
committerStarla Insigna <hatkirby@fourisland.com>2010-03-28 09:42:25 -0400
commitec5b2499fff7cd30e1c221dbd63b37ef507d41b8 (patch)
tree33155a39a545717958a45593c84cbbca4051bd4e /includes/common.php
parent93d3209110d435d43cc9016aa6cf4acff6028011 (diff)
downloadfourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.gz
fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.bz2
fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.zip
Added April Fools Day joke
Diffstat (limited to 'includes/common.php')
-rwxr-xr-xincludes/common.php8
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
50if (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
50if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) 58if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched))
51{ 59{
52 $usingIE = true; 60 $usingIE = true;