diff options
Diffstat (limited to 'web/include/thebrain.php')
-rw-r--r-- | web/include/thebrain.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/include/thebrain.php b/web/include/thebrain.php index 609c63f..7c19b68 100644 --- a/web/include/thebrain.php +++ b/web/include/thebrain.php @@ -1,4 +1,20 @@ <?php +if ((strpos($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) || ($ua->parent == "Validation Checkers")) { + $content_type = "application/xhtml+xml"; +} + +elseif ((strpos($_SERVER['HTTP_ACCEPT'], "application/xml")) || ($ua->browser == "IE" && $ua->version >= 6)) { + if ($ua->browser == "IE") { + $extradoctype = "<?xml-stylesheet type=\"text/xsl\" href=\"/include/copy.xsl\"?>\n"; + } + $content_type = "application/xml"; +} +else { + $content_type = "text/html"; +} + +header("Content-type: $content_type; charset=UTF-8"); + $navlist = array( "home" => "Home", "instruc" => "Instructions", |