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-2009 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: preindex.php - Last Update: 12/13/2009 SVN 404 - Author: cooldude2k $
16 $pretime = explode(" ", microtime());
19 $starttime = $utime + $time;
20 $File3Name = basename($_SERVER['SCRIPT_NAME']);
21 if ($File3Name=="preindex.php"||$File3Name=="/preindex.php") {
22 header('Location: index.php');
25 if($_GET['act']=="sqldumper"&&$_SESSION['UserGroup']!=$Settings['GuestGroup']&&
26 $GroupInfo['HasAdminCP']=="yes") {
27 if($Settings['sqltype']=="mysql"||$Settings['sqltype']=="mysqli") {
28 require($SettDir['sqldumper'].'mysql.php'); }
29 if($Settings['sqltype']=="sqlite") {
30 require($SettDir['sqldumper'].'sqlite.php'); }
31 session_write_close(); die(); }
32 if(!isset($checklowview)) {
33 $checklowview = false; }
34 if($checklowview!==false&&$checklowview!==true) {
35 $checklowview = false; }
36 if($_GET['act']!="lowview") {
37 $checklowview = false; }
38 if($Settings['enable_rss']=="on") {
39 if(!isset($_GET['feed'])) { $_GET['feed'] = null; }
40 if($_GET['feed']=="rss"||$_GET['act']=="Feed"||$_GET['feed']=="atom") {
41 require($SettDir['inc'].'rssfeed.php'); } }
42 if($Settings['output_type']=="htm") {
43 $Settings['output_type'] = "html"; }
44 if($Settings['output_type']=="xhtm") {
45 $Settings['output_type'] = "xhtml"; }
46 if($Settings['output_type']=="xml+htm") {
47 $Settings['output_type'] = "xhtml"; }
48 if($Settings['html_type']=="xhtml10") {
49 require($SettDir['inc'].'xhtml10.php'); }
50 if($Settings['html_type']=="xhtml11") {
51 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
52 $ccstart = "//<![CDATA["; $ccend = "//]]>";
53 require($SettDir['inc'].'xhtml11.php'); } else {
54 if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
55 $ccstart = "//<![CDATA["; $ccend = "//]]>";
56 require($SettDir['inc'].'xhtml11.php'); } else {
57 $ccstart = "//<!--"; $ccend = "//-->";
58 $Settings['html_type']="xhtml10";
59 $Settings['html_level']="Strict";
60 require($SettDir['inc'].'xhtml10.php'); } } }
61 if($Settings['html_type']!="xhtml10") {
62 if($Settings['html_type']!="xhtml11") {
63 $ccstart = "//<!--"; $ccend = "//-->";
64 require($SettDir['inc'].'xhtml10.php'); } }