summary refs log tree commit diff stats
path: root/includes/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.php')
-rw-r--r--includes/common.php61
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
104::::444444::::444
114::::::::::::::::4 includes/common.php
124444444444:::::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
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25include('includes/template.php');
26include('includes/session.php');
27include('includes/maintenance.php');
28include('includes/parsers.php');
29include('includes/xmlrpc/xmlrpc.inc');
30include('includes/specialdates.php');
31include('includes/functions.php');
32include('includes/hits.php');
33include('includes/updatePending.php');
34
35if (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
50if (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?>