aboutsummaryrefslogtreecommitdiffstats
path: root/web/newindex.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/newindex.php')
-rw-r--r--web/newindex.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/web/newindex.php b/web/newindex.php
index 95d7a0c..bb3c1c6 100644
--- a/web/newindex.php
+++ b/web/newindex.php
@@ -3,27 +3,30 @@ set_include_path("include");
require("thebrain.php");
ob_start();
?>
-<?xml version="1.0" encoding="UTF-8" ?>
+<?php //hawhaw
+ echo "<?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>
+ <title>icculus.org/quake3: <?php echo $navlist[$page]; ?></title>
<link rel="stylesheet" href="ioq3.css" type="text/css" />
</head>
<body>
<h1>icculus.org/quake3</h1>
- <div id="navigation">
+ <ul 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";
+ echo "<li>";
+ if ($file != $page) { echo "<a href=\"?page=$file\">$alias</a>"; }
+ else { echo "<span class=\"current\">$alias</span>"; }
+ echo "</li>\n";
}
?>
- </div>
+ </ul>
<div id="content">
- <?php safe_include($_GET['page']); ?>
+ <?php include_safe("$page.php"); ?>
</div>
<div id="footer">
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://icculus.org/quake3/ioq3.css">