From 44d08ff2ddedc0ac2100ce92dce113d31dee7c14 Mon Sep 17 00:00:00 2001 From: floam Date: Wed, 2 Nov 2005 06:05:40 +0000 Subject: * 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 --- web/include/errors.php | 17 +++++++++ web/include/home.php | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ web/include/thebrain.php | 28 ++++++++++++++ web/newindex.php | 41 +++++++++++++++++++++ 4 files changed, 182 insertions(+) create mode 100644 web/include/errors.php create mode 100644 web/include/home.php create mode 100644 web/include/thebrain.php create mode 100644 web/newindex.php (limited to 'web') 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 @@ +$error[name] +

$error[description]

"; +?> 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 @@ +

Quake 3 runs natively on everything, thanks to ID Software for releasing the + game source.

+ +

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 IRC channel if you've acquired + the game data illegally!

+

Quake3 Screenshot

+ + +

What works:

+ + +

What doesn't work/known bugs:

+ +

What's the point?

+ + +

To use:

+ + +

If you have problems:

+

+ Submit everything to the bugzilla. + 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. +

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 @@ + "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 @@ + + + + + + + icculus.org/quake3 <?php //echo current section ?> + + + +

icculus.org/quake3

+ +
+ +
+ + + + -- cgit v1.2.3