From 9ca627974c7381d1143ea72dea8a127a09b746f7 Mon Sep 17 00:00:00 2001
From: floam
Date: Fri, 4 Nov 2005 04:18:09 +0000
Subject: * 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
---
web/include/instruc.php | 4 ++--
web/include/status.php | 7 ++++---
web/include/thebrain.php | 16 ++++++++++++++++
3 files changed, 22 insertions(+), 5 deletions(-)
(limited to 'web/include')
diff --git a/web/include/instruc.php b/web/include/instruc.php
index 409009d..2ea2d8b 100644
--- a/web/include/instruc.php
+++ b/web/include/instruc.php
@@ -51,14 +51,14 @@ That's okay, here's the 10ยข survival guide to making patches:
Create a patch between oldfile and newfile:
diff -u oldfile newfile
Create a patch between directory olddir and newdir:
- diff -Naur olddir newdir
+ diff -Naur olddir newdir
Apply a patch amazing_new_feature.patch:
patch -p0 -i amazing_new_feature.patch
For more information on diff and patch,
read their man-pages.
The prefered way to get the ball rolling on a patch is to file a bug
-for your patch and attach the patch to it and then send a notice to the mailing list
+for your request with the patch attached to it and then send a notice to the mailing list
about it. If you're really so lazy that you can't do this, we would prefer you at least
mail it to zakk@icculus.org rather than not do
anything.
diff --git a/web/include/status.php b/web/include/status.php
index ae9e8bc..252d07d 100644
--- a/web/include/status.php
+++ b/web/include/status.php
@@ -60,26 +60,27 @@
|
Client has severe graphical glitches. |
+
FreeBSD |
gcc-x86 |
working |
|
|
-
+
Solaris |
gcc-x86 |
broken |
|
|
-
+
gcc-sparc |
broken |
|
|
-
+
IRIX |
cc-* |
broken |
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 @@
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 = "\n";
+ }
+ $content_type = "application/xml";
+}
+else {
+ $content_type = "text/html";
+}
+
+header("Content-type: $content_type; charset=UTF-8");
+
$navlist = array(
"home" => "Home",
"instruc" => "Instructions",
--
cgit v1.2.3