diff options
Diffstat (limited to 'includes/common.php')
| -rw-r--r-- | includes/common.php | 61 |
1 files changed, 61 insertions, 0 deletions
| diff --git a/includes/common.php b/includes/common.php new file mode 100644 index 0000000..e4321d9 --- /dev/null +++ b/includes/common.php | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | <?php | ||
| 2 | /* | ||
| 3 | 444444444 | ||
| 4 | 4::::::::4 | ||
| 5 | 4:::::::::4 | ||
| 6 | 4::::44::::4 | ||
| 7 | 4::::4 4::::4 Four Island | ||
| 8 | 4::::4 4::::4 | ||
| 9 | 4::::4 4::::4 Written and maintained by Starla Insigna | ||
| 10 | 4::::444444::::444 | ||
| 11 | 4::::::::::::::::4 includes/common.php | ||
| 12 | 4444444444:::::444 | ||
| 13 | 4::::4 Please do not use, reproduce or steal the | ||
| 14 | 4::::4 contents of this file without explicit | ||
| 15 | 4::::4 permission from Hatkirby. | ||
| 16 | 44::::::44 | ||
| 17 | 4::::::::4 | ||
| 18 | 4444444444 | ||
| 19 | */ | ||
| 20 | |||
| 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
| 22 | |||
| 23 | require('headerproc.php'); | ||
| 24 | |||
| 25 | include('includes/template.php'); | ||
| 26 | include('includes/session.php'); | ||
| 27 | include('includes/maintenance.php'); | ||
| 28 | include('includes/parsers.php'); | ||
| 29 | include('includes/xmlrpc/xmlrpc.inc'); | ||
| 30 | include('includes/specialdates.php'); | ||
| 31 | include('includes/functions.php'); | ||
| 32 | include('includes/hits.php'); | ||
| 33 | include('includes/updatePending.php'); | ||
| 34 | |||
| 35 | if (isset($_GET['layout'])) | ||
| 36 | { | ||
| 37 | if (!file_exists('theme/layouts/' . basename($_GET['layout']))) | ||
| 38 | { | ||
| 39 | $_GET['layout'] = '7'; | ||
| 40 | } | ||
| 41 | |||
| 42 | setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com'); | ||
| 43 | |||
| 44 | unset($_GET['layout']); | ||
| 45 | |||
| 46 | header('Location: ' . getRewriteURL()); | ||
| 47 | exit; | ||
| 48 | } | ||
| 49 | |||
| 50 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) | ||
| 51 | { | ||
| 52 | $usingIE = true; | ||
| 53 | } else { | ||
| 54 | if (getLayout() == '7') | ||
| 55 | { | ||
| 56 | header('Content-type: application/xhtml+xml'); | ||
| 57 | $xhtml = true; | ||
| 58 | } | ||
| 59 | } | ||
| 60 | |||
| 61 | ?> | ||
