aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-02 06:05:40 +0000
committerfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-02 06:05:40 +0000
commit44d08ff2ddedc0ac2100ce92dce113d31dee7c14 (patch)
tree4c375bfd4fd8d84eb166157f9dabcf5888f0c559
parentfbd2525b03247e019854c8b52b71030f0014fb81 (diff)
downloadioquake3-aero-44d08ff2ddedc0ac2100ce92dce113d31dee7c14.tar.gz
ioquake3-aero-44d08ff2ddedc0ac2100ce92dce113d31dee7c14.zip
* Starting new version in PHP with multiple sections and rewritten words
[eventually]. Right now it's totally untested and is the base I'm starting from. This shouldn't bother anyone viewing the real site. git-svn-id: svn://svn.icculus.org/quake3/trunk@223 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--web/include/errors.php17
-rw-r--r--web/include/home.php96
-rw-r--r--web/include/thebrain.php28
-rw-r--r--web/newindex.php41
4 files changed, 182 insertions, 0 deletions
diff --git a/web/include/errors.php b/web/include/errors.php
new file mode 100644
index 0000000..1c4656b
--- /dev/null
+++ b/web/include/errors.php
@@ -0,0 +1,17 @@
+<?php
+if (!$code) { $code = $_GET['code']; }
+
+switch($code) {
+ case 403:
+ $error['name'] = "Forbidden";
+ $error['description'] = "You don't have permission to be here. Go away!";
+ break;
+ case 404:
+ $error['name'] = "Not Found";
+ $error['description'] = "The file was not found. We probably screwed up.";
+ break;
+}
+header("HTTP/1.0 $code" . $error['name']);
+echo "<h2>$error[name]</h2>
+<p>$error[description]</p>";
+?>
diff --git a/web/include/home.php b/web/include/home.php
new file mode 100644
index 0000000..943f6a8
--- /dev/null
+++ b/web/include/home.php
@@ -0,0 +1,96 @@
+<p>Quake 3 runs natively on everything, thanks to <a href="http://www.idsoftware.com/">ID Software</a> for releasing the
+ game source.</p>
+
+ <p class="angryzakk">Open-Source Quake 3 does not entitle you to steal, warez,
+ pie-rat, or borrow Quake 3/Team Arena data. Do not file bugs or show your face in
+ the <acronym title="Internet Relay Chat">IRC</acronym> channel if you've acquired
+ the game data illegally!</p>
+ <p><img src="images/quake3.jpg" alt="Quake3 Screenshot" class="right"/></p>
+
+
+ <h2>What works:</h2>
+ <ul>
+ <li>Everything.</li>
+ <li>x86_64 support (including movies, native and interpreted vm mods!)</li>
+ <li>PowerPC, we think.</li>
+ <li><a href="http://www.libsdl.org/" title="Simple DirectMedia Layer">SDL</a> input, joysticks, window handling, etc.</li>
+ <li><a href="http://www.libsdl.org/" title="Simple DirectMedia Layer">SDL</a> sound, so <a href="http://alsa-project.org" title="Advanced Linux Sound Architecture">ALSA</a> should work now.</li>
+ <li>Win32 compiles and runs fine with current <acronym title="Subversion">SVN</acronym>.</li>
+ <li>mingw support.</li>
+ <li>FreeBSD</li>
+ </ul>
+
+ <h2>What doesn't work/known bugs:</h2>
+ <ul>
+ <li>World of Warcraft client.</li>
+ <li>Nobody has actually written the <a href="http://www.openal.org/">OpenAL</a> juju yet.</li>
+ <li>Nobody has made any optional graphics upgrades yet.</li>
+ <li>Nobody has ported this thing to the PSP yet.</li>
+ <li>Punkbuster, never will work unless even balance makes it so.</li>
+ </ul>
+ <h2>What's the point?</h2>
+ <ul>
+ <li>No random patches to make the mynx model naked, etc.</li>
+ <li>No patches to change the gameplay. Make a mod, not an engine change.</li>
+ <li>No patches to remove the cdkey check from anything that requires the
+ Quake 3 data (<span class="shell">pak0.pk3</span> from the cd, team arena,
+ mods that use Quake 3 maps/textures/models/etc.)</li>
+ <li>Security fixes.</li>
+ <li>Bug fixes.</li>
+ <li>New architectures (x86-64, AmigaOS, BeOS, DOS, PSP, whatever.)</li>
+ <li><a href="http://www.openal.org/">OpenAL</a> (for better support of
+ <a href="http://alsa-project.org" title="Advanced Linux Sound Architecture">ALSA</a>
+ and such) at some point</li>
+ <li>Entirely optional, and disabled by default, graphics upgrades. We love
+ bloom lighting and such, but please make sure they're disabled by default
+ (at the compilation level), and when enabled still need to be ticked on in
+ the menus.</li>
+ <li>Ditto for sound.</li>
+ <li>Mod support.</li>
+ <li>Hopefully we'll get a pack of bare-bones data files to test that the
+ engine works, too.</li>
+ </ul>
+
+ <h2>To use:</h2>
+ <ul>
+ <li>Make sure you've got a Quake 3 CD-ROM. You might be able to get away
+ with the shareware version or one of the other retail versions, but I haven't
+ tried. The Quake 3 source release does not obviate the need for a legitimate
+ copy of Quake 3.</li>
+ <li>If you're using Gentoo, just <span class="shell">emerge quake3</span>,
+ you'll get a semi-recent build.</li>
+ <li>Get the source code from <acronym title="Subversion">SVN</acronym>:</li>
+ <li class="shell">svn co svn://svn.icculus.org/quake3/trunk quake3</li>
+ <li><a href="http://svn.icculus.org/*checkout*/quake3/trunk/i_o-q3-readme">
+ Read the README.</a></li>
+ <li>Compile.</li>
+ <li>Copy your <span class="shell">pak0.pk3</span> off your legitimate Quake 3 CD-ROM, and we will also
+ need the pk3s from the latest id patch (
+ <a href="http://filesingularity.timedoctor.org/linuxq3apoint-1.32b-3.x86.run">linux</a>
+ /<a href="http://filesingularity.timedoctor.org/q3pointrelease_132.exe">win32</a>
+ /<a href="http://filesingularity.timedoctor.org/Quake3-132.pkg.sit">mac</a>).</li>
+ <li>Run game, be happy.</li>
+ <li>Touch the penguin.</li>
+ <li>Clap your hands!</li>
+ <li>Feature requests, bug reports, and preferably patches go to the
+ <a href="http://bugzilla.icculus.org/">bugzilla</a> AND give the bugzilla
+ url or bug # for your bug in the mailing list.</li>
+ <li>Subscribe to the mailing list:
+ <a href="mailto:quake3-subscribe@icculus.org">quake3-subscribe@icculus.org</a></li>
+ <li>patches go to <a href="mailto:zakk@icculus.org">zakk@icculus.org</a>
+ if you're not interested in bugzilla.</li>
+ <li>Please do not send patches that aren't yours without the approval of
+ the actual patch author.</li>
+ <li>Web view of the SVN: <a href="http://svn.icculus.org/quake3/trunk/">
+ http://svn.icculus.org/quake3/trunk/</a></li>
+ <li>Buy id software's other games.</li>
+ <li>Donate everything else to charity.</li>
+ <li>Stop by <em>#icculus.org/quake3</em> on <em>irc.freenode.net</em></li>
+ </ul>
+
+ <h1>If you have problems:</h1>
+ <p>
+ Submit everything to the <a href="http://bugzilla.icculus.org/">bugzilla</a>.
+ Do NOT contact us for copies of the game.
+ Otherwise, if you aren't sending us patches, or good feedback, don't contact us at all.
+ </p>
diff --git a/web/include/thebrain.php b/web/include/thebrain.php
new file mode 100644
index 0000000..eb36a73
--- /dev/null
+++ b/web/include/thebrain.php
@@ -0,0 +1,28 @@
+<?php
+$navlist = array(
+ "home" => "Home",
+ "instruc" => "Instructions",
+ "status" => "Status"
+);
+
+function include_safe($file) {
+ if (strpos(realpath("include/$file"), realpath($_SERVER['DOCUMENT_ROOT'])) !== 0) {
+ $code = 403;
+ require("errors.php");
+ }
+ elseif (file_exists("include/$file")) {
+ include($file);
+ }
+ else {
+ $code = 404;
+ require("errors.php");
+ }
+}
+
+if (!$_GET['page']) {
+ $page = "home";
+}
+else {
+ $page = $_GET['page'];
+
+?>
diff --git a/web/newindex.php b/web/newindex.php
new file mode 100644
index 0000000..95d7a0c
--- /dev/null
+++ b/web/newindex.php
@@ -0,0 +1,41 @@
+<?php
+set_include_path("include");
+require("thebrain.php");
+ob_start();
+?>
+<?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">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <meta content="application/xhtml+xml; charset=UTF-8" />
+ <title>icculus.org/quake3 <?php //echo current section ?></title>
+ <link rel="stylesheet" href="ioq3.css" type="text/css" />
+</head>
+<body>
+ <h1>icculus.org/quake3</h1>
+ <div id="navigation">
+ <?php
+ foreach ($navlist as $file => $alias) {
+ echo "<li";
+ if ($file == $_GET['page']) { echo " class=\"current\" "; }
+ echo "><a href=\"/$file\">$alias</a></li>\n";
+ }
+ ?>
+ </div>
+ <div id="content">
+ <?php safe_include($_GET['page']); ?>
+ </div>
+ <div id="footer">
+ <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://icculus.org/quake3/ioq3.css">
+ Valid CSS
+ </a>|
+ <a href="http://validator.w3.org/check?uri=http://icculus.org/quake3">
+ Valid XHTML
+ </a>|
+ <a href="http://icculus.org">icculus.org</a>
+ <br />
+ Website Design by <a href="http://floam.sh.nu" title="floam">Aaron Gyes</a>
+ </div>
+</body>
+</html>
+<?php ob_end_flush(); ?>