aboutsummaryrefslogtreecommitdiffstats
path: root/web/include/thebrain.php
diff options
context:
space:
mode:
authorfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-04 04:18:09 +0000
committerfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-04 04:18:09 +0000
commit9ca627974c7381d1143ea72dea8a127a09b746f7 (patch)
treea9c2aecca9fb711cbe55a497f36af68d6089a5de /web/include/thebrain.php
parentf99eea8f90ce4b75aa9409a541f10fed3d4e1f55 (diff)
downloadioquake3-aero-9ca627974c7381d1143ea72dea8a127a09b746f7.tar.gz
ioquake3-aero-9ca627974c7381d1143ea72dea8a127a09b746f7.zip
* Fix bad tag nesting and general stupidity
* Detect browser and only send high-tech mimes to things that advertise support. git-svn-id: svn://svn.icculus.org/quake3/trunk@256 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'web/include/thebrain.php')
-rw-r--r--web/include/thebrain.php16
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",