MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Revised BSD License for more details.
- Copyright 2004-2010 iDB Support - http://idb.berlios.de/
- Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
+ Copyright 2004-2017 iDB Support - http://idb.berlios.de/
+ Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: html5.php - Last Update: 05/15/2010 SVN 491 - Author: cooldude2k $
+ $FileInfo: html5.php - Last Update: 09/12/2018 SVN 871 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
-if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
+if ($File3Name=="html5.php"||$File3Name=="/html5.php") {
require('index.php');
exit(); }
-$ccstart = "//<!--"; $ccend = "//-->";
-header("Content-Type: text/html; charset=".$Settings['charset']);
+$XHTML5 = false;
+// Check to see if we serv the file as html or xhtml
+// if we do xhtml we also check to see if user's browser
+// can dispay if or else fallback to html
+if($Settings['output_type']=="html") {
+ $ccstart = "//<!--"; $ccend = "//-->"; $XHTML5 = false;
+header("Content-Type: text/html; charset=".$Settings['charset']); }
+if($Settings['output_type']=="xhtml") {
+if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
+ $ccstart = "//<![CDATA["; $ccend = "//]]>"; $XHTML5 = true;
+ header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']); }
+else { if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
+ $ccstart = "//<![CDATA["; $ccend = "//]]>"; $XHTML5 = true;
+ header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
+} else { $ccstart = "//<!--"; $ccend = "//-->"; $XHTML5 = false;
+ header("Content-Type: text/html; charset=".$Settings['charset']); } } }
+if($Settings['output_type']!="xhtml") {
+ if($Settings['output_type']!="html") {
+ $ccstart = "//<!--"; $ccend = "//-->"; $XHTML5 = false;
+header("Content-Type: text/html; charset=".$Settings['charset']); } }
if($checklowview===true&&$_GET['act']=="lowview") {
$ThemeSet['CSSType'] = "lowview";
$ThemeSet['ThemeName'] = $OrgName." Low Theme";
if($ThemeSet['CSSType']!="import"&&
$ThemeSet['CSSType']!="link"&&
$ThemeSet['CSSType']!="lowview"&&
- $ThemeSet['CSSType']!="xml") {
+ $ThemeSet['CSSType']!="xml"&&
+ $ThemeSet['CSSType']!="sql") {
$ThemeSet['CSSType'] = "import"; }
header("Content-Style-Type: text/css");
header("Content-Script-Type: text/javascript");
$iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">"; }
if($Settings['showverinfo']=="on") {
$iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$VerInfo['iDB_Ver_Show']."\" onclick=\"window.open(this.href);return false;\">"; }
-$GM2kURL = "<a href=\"".$iDBHome."support/category.php?act=view&id=2\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
+$GM2kURL = "<a href=\"".$GM2kHome."\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
$csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
$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>";
$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>";
if($Settings['qstr']=="/") {
$AltBoardURL = preg_replace("/\/$/","",$BoardURL); } }
// Get the html level
-if($Settings['html_level']!="Strict") {
+/*if($Settings['html_level']!="Strict") {
if($Settings['html_level']!="Transitional") {
- $Settings['html_level'] = "Transitional"; } }
+ $Settings['html_level'] = "Transitional"; } }*/
// HTML Document Starts
-?>
+ob_start("idb_suboutput_handler");
+if($XHTML5===false) { ?>
<!DOCTYPE html>
<?php // HTML meta tags and other html, head tags ?>
<html lang="en">
+<?php } if($XHTML5===true) { ?>
+<!DOCTYPE html [
+<!ENTITY nbsp " ">
+<!ENTITY copy "©">
+<!ENTITY reg "®">
+<!ENTITY Aacute "Á">
+<!ENTITY aacute "á">
+<!ENTITY Agrave "à">
+<!ENTITY agrave "À">
+<!ENTITY Acirc "Â">
+<!ENTITY acirc "â">
+<!ENTITY Auml "Ä">
+<!ENTITY auml "ä">
+<!ENTITY Atilde "Ã">
+<!ENTITY atilde "ã">
+<!ENTITY Aring "Å">
+<!ENTITY aring "å">
+<!ENTITY Aelig "Æ">
+<!ENTITY aelig "æ">
+<!ENTITY Ccedil "Ç">
+<!ENTITY ccedil "ç">
+<!ENTITY Eth "Ð">
+<!ENTITY eth "ð">
+<!ENTITY Eacute "É">
+<!ENTITY eacute "é">
+<!ENTITY Egrave "È">
+<!ENTITY egrave "è">
+<!ENTITY Ecirc "Ê">
+<!ENTITY ecirc "ê">
+<!ENTITY Euml "Ë">
+<!ENTITY euml "ë">
+<!ENTITY Iacute "Í">
+<!ENTITY iacute "í">
+<!ENTITY Igrave "Ì">
+<!ENTITY igrave "ì">
+<!ENTITY Icirc "Î">
+<!ENTITY icirc "î">
+<!ENTITY Iuml "Ï">
+<!ENTITY iuml "ï">
+<!ENTITY Ntilde "Ñ">
+<!ENTITY ntilde "ñ">
+<!ENTITY Oacute "Ó">
+<!ENTITY oacute "ó">
+<!ENTITY Ograve "Ò">
+<!ENTITY ograve "ò">
+<!ENTITY Ocirc "Ô">
+<!ENTITY ocirc "ô">
+<!ENTITY Ouml "Ö">
+<!ENTITY ouml "ö">
+<!ENTITY Otilde "Õ">
+<!ENTITY otilde "õ">
+<!ENTITY Oslash "Ø">
+<!ENTITY oslash "ø">
+<!ENTITY szlig "ß">
+<!ENTITY Thorn "Þ">
+<!ENTITY thorn "þ">
+<!ENTITY Uacute "Ú">
+<!ENTITY uacute "ú">
+<!ENTITY Ugrave "Ù">
+<!ENTITY ugrave "ù">
+<!ENTITY Ucirc "Û">
+<!ENTITY ucirc "û">
+<!ENTITY Uuml "Ü">
+<!ENTITY uuml "ü">
+<!ENTITY Yacute "Ý">
+<!ENTITY yacute "ý">
+<!ENTITY yuml "ÿ">
+]>
+<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<?php } ?>
<head>
+<?php $iWrappers['HTMLSTART'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
+if($XHTML5===false) { ?>
+<meta charset="<?php echo $Settings['charset']; ?>">
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $Settings['charset']; ?>">
+<?php
+if(!isset($_SERVER['HTTP_USER_AGENT'])) {
+ $_SERVER['HTTP_USER_AGENT'] = ""; }
+if(strpos($_SERVER['HTTP_USER_AGENT'], "msie") &&
+ !strpos($_SERVER['HTTP_USER_AGENT'], "opera")){ ?>
+<meta http-equiv="X-UA-Compatible" content="IE=Edge">
+<?php } if(strpos($_SERVER['HTTP_USER_AGENT'], "chromeframe")) { ?>
+<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
+<?php } } if($XHTML5===true) { ?>
+<meta charset="<?php echo $Settings['charset']; ?>" />
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $Settings['charset']; ?>" />
+<?php
+if(!isset($_SERVER['HTTP_USER_AGENT'])) {
+ $_SERVER['HTTP_USER_AGENT'] = ""; }
+if(strpos($_SERVER['HTTP_USER_AGENT'], "msie") &&
+ !strpos($_SERVER['HTTP_USER_AGENT'], "opera")){ ?>
+<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
+<?php } if(strpos($_SERVER['HTTP_USER_AGENT'], "chromeframe")) { ?>
+<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
+<?php } } $iWrappers['HTTPEQUIV'] = ob_get_clean();
+ob_start("idb_suboutput_handler"); ?>
<base href="<?php echo $BoardURL; ?>" />
<?php if($Settings['showverinfo']=="on") { ?>
<meta name="Generator" content="<?php echo $VerInfo['iDB_Ver_Show']; ?>" />
<?php } if($Settings['showverinfo']!="on") { ?>
<meta name="Generator" content="<?php echo $iDB; ?>" />
-<?php } echo "\n"; ?>
+<?php } ?>
<meta name="Author" content="<?php echo $SettInfo['Author']; ?>" />
<meta name="Keywords" content="<?php echo $SettInfo['Keywords']; ?>" />
<meta name="Description" content="<?php echo $SettInfo['Description']; ?>" />
<meta name="ROBOTS" content="Index, FOLLOW" />
-<meta name="revisit-after" content="1 days" />
<meta name="GOOGLEBOT" content="Index, FOLLOW" />
-<meta name="resource-type" content="document" />
-<meta name="distribution" content="global" />
<?php if($Settings['showverinfo']=="on") { ?>
<!-- generator="<?php echo $VerInfo['iDB_Ver_Show']; ?>" -->
<?php } if($Settings['showverinfo']!="on") { ?>
<!-- generator="<?php echo $iDB; ?>" -->
-<?php } echo "\n"; ?>
-
+<?php } $iWrappers['METATAGS'] = ob_get_clean();
+ob_start("idb_suboutput_handler"); ?>
<script type="text/javascript" src="<?php echo url_maker($exfilejs['javascript'],$Settings['js_ext'],null,$Settings['qstr'],$Settings['qsep'],$prexqstrjs['javascript'],$exqstrjs['javascript']); ?>"></script>
+<script type="text/javascript">
+ var tzname=Intl.DateTimeFormat().resolvedOptions().timeZone;
+ document.cookie = "getusertz="+tzname;
+</script>
+<?php echo "\n"; $iWrappers['JAVASCRIPT'] = ob_get_clean();
+ob_start("idb_suboutput_handler"); ?>
<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; ?>" />
<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" />
-<?php if($Settings['showverinfo']=="on") { ?>
-<link rel="Generator" href="<?php echo $iDBHome; ?>" title="<?php echo $VerInfo['iDB_Ver_Show']; ?>" />
-<?php } if($Settings['showverinfo']!="on") { ?>
-<link rel="Generator" href="<?php echo $iDBHome; ?>" title="<?php echo $iDB; ?>" />
-<?php } echo "\n"; ?>
-<!-- ^_^ Stephanie Braun -->
-<?php if($ThemeSet['CSSType']=="import") { ?>
+<?php echo "\n"; $iWrappers['LINKTAGS'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
+if($ThemeSet['CSSType']=="import") { ?>
<style type="text/css">
/* Import the theme css file */
<?php echo "\n@import url(\"".$ThemeSet['CSS']."\");\n"; ?>
-</style><?php } if($ThemeSet['CSSType']=="link") { ?>
+</style>
+<?php } if($ThemeSet['CSSType']=="sql") { ?>
+<style type="text/css">
+<?php echo $ThemeSet['CSS']; ?>
+</style>
<?php } if($ThemeSet['CSSType']=="link") { ?>
<link rel="prefetch alternate stylesheet" href="<?php echo $ThemeSet['CSS']; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $ThemeSet['CSS']; ?>" />
font-size: 9px;
}
</style>
-<?php } if($ThemeSet['FavIcon']!=null) { ?>
+<?php } $iWrappers['CSSTHEME'] = ob_get_clean();
+ob_start("idb_suboutput_handler");
+if($ThemeSet['FavIcon']!=null) { ?>
<link rel="icon" href="<?php echo $ThemeSet['FavIcon']; ?>" />
<link rel="shortcut icon" href="<?php echo $ThemeSet['FavIcon']; ?>" />
-<?php } ?>
-<!-- Renee Sabonis ^_^ -->
\ No newline at end of file
+<?php } $iWrappers['FAVICON'] = ob_get_clean(); ?>
\ No newline at end of file