r669 - in webspace: . include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 24 21:04:59 EST 2006


Author: floam
Date: 2006-03-24 21:04:59 -0500 (Fri, 24 Mar 2006)
New Revision: 669

Added:
   webspace/include/copy.xsl
Modified:
   webspace/include/downloads.php
   webspace/include/home.php
   webspace/include/status.php
   webspace/include/thebrain.php
   webspace/index.php
   webspace/ioq3.css
Log:
New front page, more IE6 fixes, other random stuff.


Added: webspace/include/copy.xsl
===================================================================
--- webspace/include/copy.xsl	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/include/copy.xsl	2006-03-25 02:04:59 UTC (rev 669)
@@ -0,0 +1,6 @@
+<stylesheet version="1.0"
+     xmlns="http://www.w3.org/1999/XSL/Transform">
+    <template match="/">
+        <copy-of select="."/>
+    </template>
+</stylesheet>

Modified: webspace/include/downloads.php
===================================================================
--- webspace/include/downloads.php	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/include/downloads.php	2006-03-25 02:04:59 UTC (rev 669)
@@ -9,7 +9,8 @@
  				<em>MD5: <tt>cd1298f0430ec9b040f2c855d78363c5</tt></em><br />
  				<em>Built from Subversion
  				<a href="http://svn.icculus.org/quake3/trunk/?rev=647">revision 647</a>.</em>
- 				</p><p>
+ 				</p>
+ 				<p>
  				Thanks to	<a href="mailto:phatfil at optusnet.com.au">Philip
  				Nelson</a>.</p>',
  				

Modified: webspace/include/home.php
===================================================================
--- webspace/include/home.php	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/include/home.php	2006-03-25 02:04:59 UTC (rev 669)
@@ -1,31 +1,53 @@
-<p>Quake 3 engine source code was released on August 20, 2005 by the fine folks
-at id Software. We thank them for that, and are continuing the mission of producing a Quake 3 that
-is without fault.</p>
 <img src="images/quake3_logo_web.png" class="right" alt="Logo" />
 
-<h2>What's the point?</h2>
+<h2>What's this?</h2>
 <p>This project aims to build upon id Software's Quake 3 source code release. The source
 code was released on August 20, 2005 under the
 <a href="http://www.gnu.org/copyleft/gpl.html" title="General Public License">GPL</a>.
 Since then, we have been cleaning up, fixing bugs, and adding features. Our
-eventual goal is to have created <em>the</em> open source Quake 3 distribution upon which
-people base their games, ports, and mods. We also aim to keep compatibility with the id data
-in perpetuity, for both single player and multiplayer, plus mods (<a href="http://www.urbanterror.net/">Urban Terror</a>, <a href="http://www.rq3.com/">Reaction Quake3</a>, etc)
-Our focus initially is to get the game working with our updates on Mac OS X, Windows, and Linux.
-Other platforms are a bonus. Sane new features are also welcome. Modern graphical upgrades
-(ie. bloom lighting) would have to be disabled by default.
-</p>
+permanate goal is to create <em>the</em> open source Quake 3 distribution upon
+which people base their games and projects. This distribution of the engine has
+been ported to many <a href="?page=status">new platforms</a> and has had a slew
+of  <a href="?page=status#features">new features</a> added, along with massive bug extermination.</p>
+
+<h2>Download Now</h2>
 <p>
-As an Open-Source project we expect comments and criticism to go the either the maintainer
-<a href="mailto:zakk at timedoctor.org">zakk at timedoctor.org</a>, or more preferably
-to the <a href="http://icculus.org/quake3/?page=discuss">mailing list</a>.
+<?php
+	$ua = get_browser(null, true);
+	include("downloads.php");
+	switch ($ua['platform']) {
+		case "Win95":
+		case "Win98":
+		case "WinME":
+		case "WinNT":
+		case "Win2000":		
+		case "WinXP":
+			$os = "windows";
+			break;
+		case "Linux":
+		case "FreeBSD":
+			$os = "windows";
+			break;
+		case "MacOSX":
+			$os = "apple";
+			break;
+		default:
+			$os = false;
+			break;
+	}
+	if ($os) {
+		echo "We have detected that you are most likely using " . $ua['platform'] .
+			". We have an installer for this platform: <div class=\"indent $os\">$downloads[$os]</div>
+			<em>Check out the <a href=\"?page=get\">Get It</a> page for other installers
+			and instructions for different installation methods.</em>";
+	}
+	else {
+		echo "We could not magically determine your platform. Check out the
+		<a href=\"?page=get\">Get It</a> page for installers and instructions fo
+		the different installation methods.";
+	}
+?>
 </p>
-<h2>Progress</h2>
-<p>While a lot is left to be done, quite a few goals have been met already. Quake 3
-now works natively on x86-64 and PowerPC architectures, plus the game builds and runs
-on <a href="http://www.freebsd.org/">FreeBSD</a>, and OS X/x86!
-<a href="http://libsdl.org" title="Simple DirectMedia Layer">SDL</a> is now used for input,
-OpenGL context management, and sound, making the game a lot easier to port to new platforms
-and architectures than it was before. Security holes and other problems have been repaired.
-A more in-depth database of new features and working status on different platforms, plus a roadmap, are all
-on the <a href="?page=status">Status</a> section.</p>
+
+<h2>News</h2>
+<?php include("news.php"); ?>

Modified: webspace/include/status.php
===================================================================
--- webspace/include/status.php	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/include/status.php	2006-03-25 02:04:59 UTC (rev 669)
@@ -112,9 +112,9 @@
 <p>You can keep an eye on the Subversion repository via the <a href="http://svn.icculus.org/quake3/trunk/">
 Web interface</a>.</p>
 
-<h2>Implemented Features</h2>
+<h2 id="features">Implemented Features</h2>
 <ul>
-	<li><a href="http://www.openal.org/">OpenAL</a> support for sound. Surround
+	<li><a href="http://www.openal.org/">OpenAL</a> is now used for sound. Surround
 	sound supported.</li>
 	<li>AVI video capture of demos.</li>
 	<li><a href="http://www.vorbis.com/">Ogg Vorbis</a> support.</li>

Modified: webspace/include/thebrain.php
===================================================================
--- webspace/include/thebrain.php	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/include/thebrain.php	2006-03-25 02:04:59 UTC (rev 669)
@@ -1,16 +1,23 @@
 <?php
-if  ((strpos($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) || ($ua->parent == "Validation Checkers"))  {
+$ua = get_browser(null, true);
+
+$normal = '<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
+if  ((strpos($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) || ($ua['parent'] == "Validation Checkers"))  {
 	$content_type = "application/xhtml+xml";
+	echo $normal;
 }
 
-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\"?>";
+elseif ((strpos($_SERVER['HTTP_ACCEPT'], "application/xml")) || ($ua['browser'] == "IE" && $ua['version'] >= 6)) {
+	if ($ua['browser'] == "IE") {
+		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<?xml-stylesheet type="text/xsl" href="include/copy.xsl"?>';
 	}
 	$content_type = "application/xml";
 }
 else {
 	$content_type = "text/html";
+	echo $normal;
 }
 
 header("Content-type: $content_type; charset=UTF-8");

Modified: webspace/index.php
===================================================================
--- webspace/index.php	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/index.php	2006-03-25 02:04:59 UTC (rev 669)
@@ -1,22 +1,16 @@
 <?php
 set_include_path("include");
-require("thebrain.php");
-include("downloads.php");
 ob_start();
+require("thebrain.php");
 ?>
-<?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="<?php echo $content_type; ?> charset=UTF-8" />
 	<meta name="description" content="Open Source Quake 3" />
 	<title>icculus.org/quake3: <?php echo $navlist[$page]; ?></title>
 	<link rel="stylesheet" href="ioq3.css" type="text/css" />
-	<link rel="icon" type="image/png" href="images/icon.png"/>
+	<link rel="alternate" type="application/rss+xml" title="icculus.org/quake3 News" href="ioq3.rss" />
+	<link rel="icon" type="image/png" href="images/icon.png" />
 	<link rel="alternate" type="application/rss+xml" title="icculus.org/quake3 news" href="http://icculus.org/quake3/ioq3.rss" />
 </head>
 <body>

Modified: webspace/ioq3.css
===================================================================
--- webspace/ioq3.css	2006-03-24 21:48:44 UTC (rev 668)
+++ webspace/ioq3.css	2006-03-25 02:04:59 UTC (rev 669)
@@ -121,9 +121,9 @@
 	padding: .2em;
 }
 
-form, pre, p {
+form, pre, p, .indent {
 	margin: .5em 1em .5em 1em;
-	text-align: justify;
+	text-align: justify;	
 }
 
 ul h3 {




More information about the quake3-commits mailing list