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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: xhtml11.php - Last Update: 07/30/2011 SVN 729 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="xhtml11.php"||
$File3Name=="/xhtml11.php") {
20 ob_start("idb_suboutput_handler");
21 // Check to see if we serv the file as html or xhtml
22 // if we do xhtml we also check to see if user's browser
23 // can dispay if or else fallback to html
24 if($Settings['output_type']!="xhtml") {
25 $Settings['output_type'] = "xhtml"; }
26 if($Settings['output_type']=="html") {
27 $ccstart = "//<!--"; $ccend = "//-->";
28 header("Content-Type: text/html; charset=".$Settings['charset']); }
29 if($Settings['output_type']=="xhtml") {
30 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
31 $ccstart = "//<![CDATA["; $ccend = "//]]>";
32 header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
33 xml_doc_start("1.0",$Settings['charset']); }
34 else { if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
35 $ccstart = "//<![CDATA["; $ccend = "//]]>";
36 header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
37 xml_doc_start("1.0",$Settings['charset']);
38 } else { $ccstart = "//<!--"; $ccend = "//-->";
39 header("Content-Type: text/html; charset=".$Settings['charset']); } } }
40 if($Settings['output_type']!="xhtml") {
41 if($Settings['output_type']!="html") {
42 $ccstart = "//<!--"; $ccend = "//-->";
43 header("Content-Type: text/html; charset=".$Settings['charset']); } }
44 if($checklowview===true) { $ThemeSet['CSSType'] = "lowview"; }
45 if($checklowview===true&&$_GET['act']=="lowview") {
46 $ThemeSet['CSSType'] = "lowview";
47 $ThemeSet['ThemeName'] = $OrgName." Low Theme";
48 $ThemeSet['ThemeMaker'] =$iDB_Author;
49 $ThemeSet['ThemeVersion'] = $VER1[0].".".$VER1[1].".".$VER1[2];
50 $ThemeSet['ThemeVersionType'] = $VER2[0];
51 $ThemeSet['ThemeSubVersion'] = $VER2[2]." ".$SubVerN;
52 $ThemeSet['MakerURL'] = $iDBHome."support/?act=lowview";
53 $ThemeSet['CopyRight'] = $ThemeSet['ThemeName']." was made by <a href=\"".$ThemeSet['MakerURL']."\" title=\"".$ThemeSet['ThemeMaker']."\">".$ThemeSet['ThemeMaker']."</a>";
54 $ThemeInfo['ThemeName'] = $ThemeSet['ThemeName'];
55 $ThemeInfo['ThemeMaker'] = $ThemeSet['ThemeMaker'];
56 $ThemeInfo['ThemeVersion'] = $ThemeSet['ThemeVersion'];
57 $ThemeInfo['ThemeVersionType'] = $ThemeSet['ThemeVersionType'];
58 $ThemeInfo['ThemeSubVersion'] = $ThemeSet['ThemeSubVersion'];
59 $ThemeInfo['MakerURL'] = $ThemeSet['MakerURL'];
60 $ThemeInfo['CopyRight'] = $ThemeSet['CopyRight']; }
61 if($ThemeSet['CSSType']!="import"&&
62 $ThemeSet['CSSType']!="link"&&
63 $ThemeSet['CSSType']!="lowview"&&
64 $ThemeSet['CSSType']!="xml"&&
65 $ThemeSet['CSSType']!="sql") {
66 $ThemeSet['CSSType'] = "import"; }
67 if($ThemeSet['CSSType']=="xhtml") {
68 xml_tag_make("xml-stylesheet","type=text/css&href=".$ThemeSet['CSS']); }
69 header("Content-Style-Type: text/css");
70 header("Content-Script-Type: text/javascript");
71 if($Settings['showverinfo']!="on") {
72 $iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">"; }
73 if($Settings['showverinfo']=="on") {
74 $iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$VerInfo['iDB_Ver_Show']."\" onclick=\"window.open(this.href);return false;\">"; }
75 $GM2kURL = "<a href=\"".$GM2kHome."\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
76 $csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
77 $BSDL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Revised BSD License\">BSDL</a>";
78 $GPL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Gnu General Public License\">GPL</a>";
79 $DualLicense = $BSDL." & ".$GPL;
80 $endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> © ".$GM2kURL." @ ".$csryear." - ".$extext = null;
81 if($checklowview!==true) { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
82 if($checklowview===true&&$_GET['act']!="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
83 if($checklowview===true&&$_GET['act']=="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">High-Version</a>"; }
84 $endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> © ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight']." | ".$extext;
85 header("Content-Language: en");
86 header("Vary: Accept-Encoding");
87 // Check if we are on a secure HTTP connection
88 if($_SERVER['HTTPS']=="on") { $prehost = "https://"; }
89 if($_SERVER['HTTPS']!="on") { $prehost = "http://"; }
90 // Get the board's url
91 if($Settings['idburl']=="localhost"||
$Settings['idburl']==null) {
92 $BoardURL = $prehost.$_SERVER["HTTP_HOST"].$basedir; }
93 if($Settings['idburl']!="localhost"&&$Settings['idburl']!=null) {
94 $BoardURL = $Settings['idburl'];
95 if($Settings['qstr']!="/") {
96 $AltBoardURL = $BoardURL; }
97 if($Settings['qstr']=="/") {
98 $AltBoardURL = preg_replace("/\/$/","",$BoardURL); } }
99 // HTML Document Starts, HTML meta tags and other html, head tags ?>
100 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
101 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
102 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en">
104 <?php
$iWrappers['HTMLSTART'] = ob_get_clean();
105 ob_start("idb_suboutput_handler"); ?
>
106 <meta http
-equiv
="Content-Language" content
="en" />
107 <meta http
-equiv
="Content-Type" content
="text/html; charset=<?php echo $Settings['charset']; ?>" />
108 <meta http
-equiv
="Content-Style-Type" content
="text/css" />
109 <meta http
-equiv
="Content-Script-Type" content
="text/javascript" />
110 <meta http
-equiv
="Cache-Control" content
="private, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0" />
111 <meta http
-equiv
="Pragma" content
="private, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0" />
112 <meta http
-equiv
="Expires" content
="<?php echo gmdate("D
, d M Y H
:i
:s
")." GMT
"; ?>" />
113 <meta http
-equiv
="P3P" content
='CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"' />
114 <meta http
-equiv
="P3P" name
="CP" content
="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" />
115 <meta http
-equiv
="Expires" content
="<?php echo gmdate("D
, d M Y H
:i
:s
")." GMT
"; ?>" />
117 if(!isset($_SERVER['HTTP_USER_AGENT'])) {
118 $_SERVER['HTTP_USER_AGENT'] = ""; }
119 if(strpos($_SERVER['HTTP_USER_AGENT'], "msie") &&
120 !strpos($_SERVER['HTTP_USER_AGENT'], "opera")){ ?
>
121 <meta http
-equiv
="X-UA-Compatible" content
="IE=Edge" />
122 <?php
} if(strpos($_SERVER['HTTP_USER_AGENT'], "chromeframe")) { ?
>
123 <meta http
-equiv
="X-UA-Compatible" content
="IE=Edge,chrome=1" />
124 <?php
} $iWrappers['HTTPEQUIV'] = ob_get_clean();
125 ob_start("idb_suboutput_handler"); ?
>
126 <base href
="<?php echo $BoardURL; ?>" />
127 <?php
if($Settings['showverinfo']=="on") { ?
>
128 <meta name
="Generator" content
="<?php echo $VerInfo['iDB_Ver_Show']; ?>" />
129 <?php
} if($Settings['showverinfo']!="on") { ?
>
130 <meta name
="Generator" content
="<?php echo $iDB; ?>" />
131 <?php
} echo "\n"; ?
>
132 <meta name
="Author" content
="<?php echo $SettInfo['Author']; ?>" />
133 <meta name
="Keywords" content
="<?php echo $SettInfo['Keywords']; ?>" />
134 <meta name
="Description" content
="<?php echo $SettInfo['Description']; ?>" />
135 <meta name
="ROBOTS" content
="Index, FOLLOW" />
136 <meta name
="revisit-after" content
="1 days" />
137 <meta name
="GOOGLEBOT" content
="Index, FOLLOW" />
138 <meta name
="resource-type" content
="document" />
139 <meta name
="distribution" content
="global" />
140 <?php
if($Settings['showverinfo']=="on") { ?
>
141 <!-- generator
="<?php echo $VerInfo['iDB_Ver_Show']; ?>" -->
142 <?php
} if($Settings['showverinfo']!="on") { ?
>
143 <!-- generator
="<?php echo $iDB; ?>" -->
144 <?php
} echo "\n"; $iWrappers['METATAGS'] = ob_get_clean();
145 ob_start("idb_suboutput_handler"); ?
>
147 <script type
="text/javascript" src
="<?php echo url_maker($exfilejs['javascript'],$Settings['js_ext'],null,$Settings['qstr'],$Settings['qsep'],$prexqstrjs['javascript'],$exqstrjs['javascript']); ?>"></script
>
148 <?php
echo "\n"; $iWrappers['JAVASCRIPT'] = ob_get_clean();
149 ob_start("idb_suboutput_handler"); ?
>
150 <link rel
="Start" href
="<?php echo $AltBoardURL.url_maker($exfile['index'],$Settings['file_ext'],"act
=view
",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>" title
="<?php echo $Settings['board_name'].$idbpowertitle; ?>" />
151 <link rel
="Copyright" href
="<?php echo $AltBoardURL.url_maker($exfile['index'],$Settings['file_ext'],"act
=bsd
",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>" title
="Copyright Notice" />
152 <?php
if($Settings['showverinfo']=="on") { ?
>
153 <link rel
="Generator" href
="<?php echo $iDBHome; ?>" title
="<?php echo $VerInfo['iDB_Ver_Show']; ?>" />
154 <?php
} if($Settings['showverinfo']!="on") { ?
>
155 <link rel
="Generator" href
="<?php echo $iDBHome; ?>" title
="<?php echo $iDB; ?>" />
156 <!-- ^_^ Stephanie Braun
-->
157 <?php
} echo "\n"; $iWrappers['LINKTAGS'] = ob_get_clean();
158 ob_start("idb_suboutput_handler"); ?
>
159 <?php
if($ThemeSet['CSSType']=="import") { ?
>
160 <style type
="text/css">
161 /* Import the theme css file */
162 <?php
echo "\n@import url(\"".$ThemeSet['CSS']."\");\n"; ?
>
164 <?php
} if($ThemeSet['CSSType']=="sql") { ?
>
165 <style type
="text/css">
166 <?php
echo $ThemeSet['CSS']; ?
>
168 <?php
} if($ThemeSet['CSSType']=="link") { ?
>
169 <link rel
="prefetch alternate stylesheet" href
="<?php echo $ThemeSet['CSS']; ?>" />
170 <link rel
="stylesheet" type
="text/css" href
="<?php echo $ThemeSet['CSS']; ?>" />
171 <?php
} if($ThemeSet['CSSType']=="lowview") { ?
>
172 <style type
="text/css">
173 /* (Low View / Lo-Fi ) version start */
175 background
-color
: #FFFFFF;
177 font
-family
: Verdana
, Tahoma
, Arial
, Trebuchet MS
, Sans
-Serif
, Georgia
, Courier
, Times
New Roman
, Serif
;
184 font
-family
: Sans
-Serif
;
194 <?php
} $iWrappers['CSSTHEME'] = ob_get_clean();
195 ob_start("idb_suboutput_handler");
196 if($ThemeSet['FavIcon']!=null) { ?
>
197 <link rel
="icon" href
="<?php echo $ThemeSet['FavIcon']; ?>" />
198 <link rel
="shortcut icon" href
="<?php echo $ThemeSet['FavIcon']; ?>" />
200 <!-- Renee Sabonis ^_^
-->
201 <?php
$iWrappers['FAVICON'] = ob_get_clean(); ?
>