diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-11-26 14:21:20 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-11-26 14:21:20 -0500 |
commit | 224f9ee5014ae5c5399188afd8d38e3b620e2856 (patch) | |
tree | 6432f783d495626e962835009b6d2f4fd53e42cd /index.php | |
parent | 34d358ba240bd19491f0f97faf04513318bee6c0 (diff) | |
download | fourisland-224f9ee5014ae5c5399188afd8d38e3b620e2856.tar.gz fourisland-224f9ee5014ae5c5399188afd8d38e3b620e2856.tar.bz2 fourisland-224f9ee5014ae5c5399188afd8d38e3b620e2856.zip |
Added Fouripedia compatibility
Made many strutural changes to Four Island allowing for the reinclusion of Fouripedia.
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/index.php b/index.php index 7a958ee..83cdd99 100755 --- a/index.php +++ b/index.php | |||
@@ -24,41 +24,7 @@ header('X-Pingback: http://fourisland.com/xmlrpc.php'); | |||
24 | 24 | ||
25 | include('../security/config.php'); | 25 | include('../security/config.php'); |
26 | include('includes/db.php'); | 26 | include('includes/db.php'); |
27 | include('includes/template.php'); | 27 | include('includes/common.php'); |
28 | include('includes/session.php'); | ||
29 | include('includes/maintenance.php'); | ||
30 | include('includes/parsers.php'); | ||
31 | include('includes/xmlrpc/xmlrpc.inc'); | ||
32 | include('includes/specialdates.php'); | ||
33 | include('includes/functions.php'); | ||
34 | include('includes/hits.php'); | ||
35 | include('includes/updatePending.php'); | ||
36 | |||
37 | if (isset($_GET['layout'])) | ||
38 | { | ||
39 | if (!file_exists('theme/layouts/' . basename($_GET['layout']))) | ||
40 | { | ||
41 | $_GET['layout'] = '7'; | ||
42 | } | ||
43 | |||
44 | setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com'); | ||
45 | |||
46 | unset($_GET['layout']); | ||
47 | |||
48 | header('Location: ' . getRewriteURL()); | ||
49 | exit; | ||
50 | } | ||
51 | |||
52 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) | ||
53 | { | ||
54 | $usingIE = true; | ||
55 | } else { | ||
56 | if (getLayout() == '7') | ||
57 | { | ||
58 | header('Content-type: application/xhtml+xml'); | ||
59 | $xhtml = true; | ||
60 | } | ||
61 | } | ||
62 | 28 | ||
63 | if (strpos($_SERVER['REQUEST_URI'],'index.php')) | 29 | if (strpos($_SERVER['REQUEST_URI'],'index.php')) |
64 | { | 30 | { |