diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 13:46:55 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 13:46:55 -0400 |
commit | 6a1d5b60e6ec541a36727b84b71168f62221f7d7 (patch) | |
tree | ea7a39f74dd02d56290778ac1a7c04e059fedc90 /index.php | |
parent | bd9b7db6bcaa83b376277ff324c905acbd9b9636 (diff) | |
download | fourisland-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-x | index.php | 123 |
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 |
10 | 4::::444444::::444 | 10 | 4::::444444::::444 |
11 | 4::::::::::::::::4 index.php | 11 | 4::::::::::::::::4 index.php |
12 | 4444444444:::::444 | 12 | 4444444444:::::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 | ||
21 | require('headerproc.php'); | 21 | require('headerproc.php'); |
22 | 22 | ||
23 | header('Content-type: application/xhtml+xml'); | 23 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) |
24 | header('X-Pingback: http://fourisland.com/xmlrpc.php'); | 24 | { |
25 | 25 | header('Content-type: text/html'); | |
26 | include('../security/config.php'); | 26 | $usingIE = true; |
27 | include('includes/db.php'); | 27 | } else { |
28 | include('includes/template.php'); | 28 | header('Content-type: application/xhtml+xml'); |
29 | include('includes/session.php'); | 29 | } |
30 | include('includes/maintenance.php'); | 30 | |
31 | include('includes/parsers.php'); | 31 | header('X-Pingback: http://fourisland.com/xmlrpc.php'); |
32 | include('includes/xmlrpc/xmlrpc.inc'); | 32 | |
33 | include('includes/specialdates.php'); | 33 | include('../security/config.php'); |
34 | include('includes/functions.php'); | 34 | include('includes/db.php'); |
35 | include('includes/hits.php'); | 35 | include('includes/template.php'); |
36 | include('includes/updatePending.php'); | 36 | include('includes/session.php'); |
37 | 37 | include('includes/maintenance.php'); | |
38 | ob_start(); | 38 | include('includes/parsers.php'); |
39 | 39 | include('includes/xmlrpc/xmlrpc.inc'); | |
40 | $pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; | 40 | include('includes/specialdates.php'); |
41 | 41 | include('includes/functions.php'); | |
42 | if (file_exists('pages/' . $pageName . '.php')) | 42 | include('includes/hits.php'); |
43 | { | 43 | include('includes/updatePending.php'); |
44 | include('pages/' . $pageName . '.php'); | 44 | |
45 | } else { | 45 | ob_start(); |
46 | generateError('404'); | 46 | |
47 | } | 47 | $pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; |
48 | 48 | ||
49 | $doc = ob_get_contents(); | 49 | if (file_exists('pages/' . $pageName . '.php')) |
50 | ob_end_clean(); | 50 | { |
51 | 51 | include('pages/' . $pageName . '.php'); | |
52 | $doc = stripslashes($doc); | 52 | } else { |
53 | 53 | generateError('404'); | |
54 | include('includes/header.php'); | 54 | } |
55 | echo($doc); | 55 | |
56 | include('includes/footer.php'); | 56 | $doc = ob_get_contents(); |
57 | 57 | ob_end_clean(); | |
58 | ?> | 58 | |
59 | $doc = stripslashes($doc); | ||
60 | |||
61 | include('includes/header.php'); | ||
62 | echo($doc); | ||
63 | include('includes/footer.php'); | ||
64 | |||
65 | ?> | ||