summary refs log tree commit diff stats
path: root/index.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-08-09 13:46:55 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-08-09 13:46:55 -0400
commit6a1d5b60e6ec541a36727b84b71168f62221f7d7 (patch)
treeea7a39f74dd02d56290778ac1a7c04e059fedc90 /index.php
parentbd9b7db6bcaa83b376277ff324c905acbd9b9636 (diff)
downloadfourisland-6a1d5b60e6ec541a36727b84b71168f62221f7d7.tar.gz
fourisland-6a1d5b60e6ec541a36727b84b71168f62221f7d7.tar.bz2
fourisland-6a1d5b60e6ec541a36727b84b71168f62221f7d7.zip
Added IE support
Because IE doesn't support XHTML, Four Island checks to see if the browser is IE and if it is, changes the Content Type to HTML. It also displays a warning at the top of the screen telling the user that their browsing experience will be much better with a better browser.
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php123
1 files changed, 65 insertions, 58 deletions
diff --git a/index.php b/index.php index 58b66d2..77b4944 100755 --- a/index.php +++ b/index.php
@@ -1,58 +1,65 @@
1<?php 1<?php
2/* 2/*
3 444444444 3 444444444
4 4::::::::4 4 4::::::::4
5 4:::::::::4 5 4:::::::::4
6 4::::44::::4 6 4::::44::::4
7 4::::4 4::::4 Four Island 7 4::::4 4::::4 Four Island
8 4::::4 4::::4 8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna 9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444 104::::444444::::444
114::::::::::::::::4 index.php 114::::::::::::::::4 index.php
124444444444:::::444 124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the 13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit 14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby. 15 4::::4 permission from Hatkirby.
16 44::::::44 16 44::::::44
17 4::::::::4 17 4::::::::4
18 4444444444 18 4444444444
19*/ 19*/
20 20
21require('headerproc.php'); 21require('headerproc.php');
22 22
23header('Content-type: application/xhtml+xml'); 23if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched))
24header('X-Pingback: http://fourisland.com/xmlrpc.php'); 24{
25 25 header('Content-type: text/html');
26include('../security/config.php'); 26 $usingIE = true;
27include('includes/db.php'); 27} else {
28include('includes/template.php'); 28 header('Content-type: application/xhtml+xml');
29include('includes/session.php'); 29}
30include('includes/maintenance.php'); 30
31include('includes/parsers.php'); 31header('X-Pingback: http://fourisland.com/xmlrpc.php');
32include('includes/xmlrpc/xmlrpc.inc'); 32
33include('includes/specialdates.php'); 33include('../security/config.php');
34include('includes/functions.php'); 34include('includes/db.php');
35include('includes/hits.php'); 35include('includes/template.php');
36include('includes/updatePending.php'); 36include('includes/session.php');
37 37include('includes/maintenance.php');
38ob_start(); 38include('includes/parsers.php');
39 39include('includes/xmlrpc/xmlrpc.inc');
40$pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; 40include('includes/specialdates.php');
41 41include('includes/functions.php');
42if (file_exists('pages/' . $pageName . '.php')) 42include('includes/hits.php');
43{ 43include('includes/updatePending.php');
44 include('pages/' . $pageName . '.php'); 44
45} else { 45ob_start();
46 generateError('404'); 46
47} 47$pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome';
48 48
49$doc = ob_get_contents(); 49if (file_exists('pages/' . $pageName . '.php'))
50ob_end_clean(); 50{
51 51 include('pages/' . $pageName . '.php');
52$doc = stripslashes($doc); 52} else {
53 53 generateError('404');
54include('includes/header.php'); 54}
55echo($doc); 55
56include('includes/footer.php'); 56$doc = ob_get_contents();
57 57ob_end_clean();
58?> 58
59$doc = stripslashes($doc);
60
61include('includes/header.php');
62echo($doc);
63include('includes/footer.php');
64
65?>