diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
| commit | ec5b2499fff7cd30e1c221dbd63b37ef507d41b8 (patch) | |
| tree | 33155a39a545717958a45593c84cbbca4051bd4e /includes/common.php | |
| parent | 93d3209110d435d43cc9016aa6cf4acff6028011 (diff) | |
| download | fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.gz fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.bz2 fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.zip | |
Added April Fools Day joke
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; |
