10
0
Fork 0
mirror of https://github.com/ChaosChemnitz/interfug15 synced 2024-12-21 10:02:21 +01:00
interfug15_github/index.php

72 lines
2.2 KiB
PHP

<?php
header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1
header("Pragma: no-cache"); //HTTP 1.0
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
$pageId=isset($_GET["page"])?$_GET["page"]:"home";
$pages=Array(
Array("name"=>"home","url"=>"/","title"=>"Home"),
Array("name"=>"fahrplan","url"=>"/fahrplan","title"=>"Fahrplan"),
/* Array("name"=>"cfp","url"=>"/cfp","title"=>"CFP"), */
Array("name"=>"tickets","url"=>"/tickets","title"=>"Tickets"),
Array("name"=>"anreise","url"=>"/anreise","title"=>"Anreise"),
Array("name"=>"kontakt","url"=>"/kontakt","title"=>"Kontakt")
);
?>
<!DOCTYPE html>
<html>
<head>
<title>INTERFUG #1//2015</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/png" href="/img/icon.png">
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<div id="header" class="container">
<header id="title">
<h1>INTERFUG #1//2015</h1>
</header>
<nav id="nav">
<ul>
<?php
foreach($pages as $p)
echo "<li><a href=\"".$p["url"]."\"".($pageId==$p["name"]?" class=\"active\"":"")."><span>".$p["title"]."</span></a></li>\n";
?>
</ul>
</nav>
<div class="border">
</div>
</div>
<div id="main" class="container">
<article id="content" class="box">
<div id="navplaceholder"></div>
<?php
foreach($pages as $p){
if($pageId==$p["name"]){
$c="if15".substr(base_convert(md5("if15".rand()), 16, 36), 0, 9);
echo str_replace("#code#",$c,file_get_contents("text/".$p["name"].".html"));
}
}
/*
<!--footer id="footer" class="box" style="color:#C0C0C0">
<ul class="links">
<li><a href="https://chaoschemnitz.de/ChaosChemnitz:Impressum">Impressum</a></li>
<li>Design by ... + <a href="https://jdi.li/">/jdi/</a>.</li>
</ul>
</footer-->
*/
?>
</article>
</div>
<table id="container" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="marx"></td>
<td class="container"></td>
<td id="line"></td>
</tr>
</table>
</body>
</html>