summary refs log tree commit diff stats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-x[-rw-r--r--]includes/common.php46
-rwxr-xr-x[-rw-r--r--]includes/layout.php0
2 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
23require('headerproc.php'); 23require('headerproc.php');
24 24
25include('includes/template.php'); 25include('includes/template.php');
26include('includes/session.php'); 26include('includes/session.php');
27include('includes/maintenance.php'); 27include('includes/maintenance.php');
28include('includes/parsers.php'); 28include('includes/parsers.php');
29include('includes/xmlrpc/xmlrpc.inc'); 29include('includes/xmlrpc/xmlrpc.inc');
30include('includes/specialdates.php'); 30include('includes/specialdates.php');
31include('includes/functions.php'); 31include('includes/functions.php');
32include('includes/hits.php'); 32include('includes/hits.php');
33include('includes/updatePending.php'); 33include('includes/updatePending.php');
34 34
35if (isset($_GET['layout'])) 35if (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
50if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) 50if (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?>
diff --git a/includes/layout.php b/includes/layout.php index b11c56f..b11c56f 100644..100755 --- a/includes/layout.php +++ b/includes/layout.php