3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
12 Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
14 $FileInfo: preindex.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="preindex.php"||$File3Name=="/preindex.php") {
18 @header('Location: index.php');
21 if($Settings['enable_rss']==true) {
22 if($_GET['feed']=="rss"||$_GET['act']=="Feed"||$_GET['feed']=="atom") {
23 require($SettDir['inc'].'rssfeed.php'); } }
24 if($Settings['output_type']=="htm") {
25 $Settings['output_type'] = "html"; }
26 if($Settings['output_type']=="xhtm") {
27 $Settings['output_type'] = "xhtml"; }
28 if($Settings['output_type']=="xml+htm") {
29 $Settings['output_type'] = "xhtml"; }
30 if($Settings['html_type']=="xhtml10") {
31 require($SettDir['inc'].'xhtml10.php'); }
32 if($Settings['html_type']=="xhtml11") {
33 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
34 $ccstart = "//<![CDATA["; $ccend = "//]]>";
35 require($SettDir['inc'].'xhtml11.php'); } else {
36 if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
37 $ccstart = "//<![CDATA["; $ccend = "//]]>";
38 require($SettDir['inc'].'xhtml11.php'); } else {
39 $ccstart = "//<!--"; $ccend = "//-->";
40 $Settings['html_type']="xhtml10";
41 $Settings['html_level']="Strict";
42 require($SettDir['inc'].'xhtml10.php'); } } }
43 if($Settings['html_type']!="xhtml10") {
44 if($Settings['html_type']!="xhtml11") {
45 $ccstart = "//<!--"; $ccend = "//-->";
46 require($SettDir['inc'].'xhtml10.php'); } }