aboutsummaryrefslogtreecommitdiffstats
path: root/web/include
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
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')
-rw-r--r--web/include/instruc.php4
-rw-r--r--web/include/status.php7
-rw-r--r--web/include/thebrain.php16
3 files changed, 22 insertions, 5 deletions
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:</p>
<li>Create a patch between <em class="shell">oldfile</em> and <em class="shell">newfile</em>:<br />
<span class="shell">diff -u <em>oldfile</em> <em>newfile</em></span></li>
<li>Create a patch between directory <em class="shell">olddir</em> and <em class="shell">newdir</em>:<br />
- <span class="shell">diff -Naur <em>olddir</em> <em>newdir</em></li>
+ <span class="shell">diff -Naur <em>olddir</em> <em>newdir</em></span></li>
<li>Apply a patch <em class="shell">amazing_new_feature.patch</em>:<br />
<span class="shell">patch -p0 -i <em>amazing_new_feature.patch</em></span></li>
</ul>
<p>For more information on <span class="shell">diff</span> and <span class="shell">patch</span>,
read their man-pages.</p>
<p>The prefered way to get the ball rolling on a patch is to file a <a href="http://bugs.icculus.org">bug</a>
-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
<a href="mailto:zakk@icculus.org">mail it to zakk@icculus.org</a> rather than not do
anything.</p>
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 @@
<td></td> <!--LKWR-->
<td>Client has severe graphical glitches.</td> <!--Notes-->
</tr>
+ <tr>
<td scope="row">FreeBSD</td> <!--OS-->
<td>gcc-x86</td> <!--Platform-->
<td>working</td> <!--Status-->
<td></td> <!--LKWR-->
<td></td> <!--Notes-->
</tr>
- </tr>
+ <tr>
<td scope="row" rowspan="2">Solaris</td> <!--OS-->
<td>gcc-x86</td> <!--Platform-->
<td>broken</td> <!--Status-->
<td></td> <!--LKWR-->
<td></td> <!--Notes-->
</tr>
- </tr>
+ <tr>
<td>gcc-sparc</td> <!--Platform-->
<td>broken</td> <!--Status-->
<td></td> <!--LKWR-->
<td></td> <!--Notes-->
</tr>
- </tr>
+ <tr>
<td scope="row">IRIX</td> <!--OS-->
<td>cc-*</td> <!--Platform-->
<td>broken</td> <!--Status-->
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",