diff options
Diffstat (limited to 'includes/common.php')
-rwxr-xr-x[-rw-r--r--] | includes/common.php | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/includes/common.php b/includes/common.php index e4321d9..1239c68 100644..100755 --- a/includes/common.php +++ b/includes/common.php | |||
@@ -22,40 +22,34 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | include('includes/template.php'); | 25 | include('includes/template.php'); |
26 | include('includes/session.php'); | 26 | include('includes/session.php'); |
27 | include('includes/maintenance.php'); | 27 | include('includes/maintenance.php'); |
28 | include('includes/parsers.php'); | 28 | include('includes/parsers.php'); |
29 | include('includes/xmlrpc/xmlrpc.inc'); | 29 | include('includes/xmlrpc/xmlrpc.inc'); |
30 | include('includes/specialdates.php'); | 30 | include('includes/specialdates.php'); |
31 | include('includes/functions.php'); | 31 | include('includes/functions.php'); |
32 | include('includes/hits.php'); | 32 | include('includes/hits.php'); |
33 | include('includes/updatePending.php'); | 33 | include('includes/updatePending.php'); |
34 | 34 | ||
35 | if (isset($_GET['layout'])) | 35 | if (isset($_GET['layout'])) |
36 | { | 36 | { |
37 | if (!file_exists('theme/layouts/' . basename($_GET['layout']))) | 37 | if (!file_exists('theme/layouts/' . basename($_GET['layout']))) |
38 | { | 38 | { |
39 | $_GET['layout'] = '7'; | 39 | $_GET['layout'] = '7'; |
40 | } | 40 | } |
41 | 41 | ||
42 | setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com'); | 42 | setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com'); |
43 | 43 | ||
44 | unset($_GET['layout']); | 44 | unset($_GET['layout']); |
45 | 45 | ||
46 | header('Location: ' . getRewriteURL()); | 46 | header('Location: ' . getRewriteURL()); |
47 | exit; | 47 | exit; |
48 | } | 48 | } |
49 | 49 | ||
50 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) | 50 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) |
51 | { | 51 | { |
52 | $usingIE = true; | 52 | $usingIE = true; |
53 | } else { | ||
54 | if (getLayout() == '7') | ||
55 | { | ||
56 | header('Content-type: application/xhtml+xml'); | ||
57 | $xhtml = true; | ||
58 | } | ||
59 | } | 53 | } |
60 | 54 | ||
61 | ?> | 55 | ?> |