diff options
author | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-04 04:18:09 +0000 |
---|---|---|
committer | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-04 04:18:09 +0000 |
commit | 9ca627974c7381d1143ea72dea8a127a09b746f7 (patch) | |
tree | a9c2aecca9fb711cbe55a497f36af68d6089a5de | |
parent | f99eea8f90ce4b75aa9409a541f10fed3d4e1f55 (diff) | |
download | ioquake3-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
-rw-r--r-- | web/include/instruc.php | 4 | ||||
-rw-r--r-- | web/include/status.php | 7 | ||||
-rw-r--r-- | web/include/thebrain.php | 16 | ||||
-rw-r--r-- | web/newindex.php | 3 |
4 files changed, 24 insertions, 6 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", diff --git a/web/newindex.php b/web/newindex.php index c0f4da6..19463af 100644 --- a/web/newindex.php +++ b/web/newindex.php @@ -5,11 +5,12 @@ ob_start(); ?> <?php //hawhaw echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; + echo $extradoctype; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> - <meta content="application/xhtml+xml; charset=UTF-8" /> + <meta content="<?php echo $content_type; ?> charset=UTF-8" /> <title>icculus.org/quake3: <?php echo $navlist[$page]; ?></title> <link rel="stylesheet" href="ioq3.css" type="text/css" /> </head> |