mirror of
https://github.com/fortressforever/fortressforever-web.git
synced 2024-11-25 13:31:43 +00:00
66 lines
2.9 KiB
PHP
66 lines
2.9 KiB
PHP
|
<?php
|
||
|
require_once __DIR__ . "/config.php";
|
||
|
$page = isset($_GET["page"]) ? $_GET["page"] : "home";
|
||
|
$paramstring = isset($_GET["rest"]) ? $_GET["rest"] : "";
|
||
|
$parameters = explode('/', $paramstring);
|
||
|
$DB = $config["site_db"];
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Fortress Forever</title>
|
||
|
<base href="<?=FF_HOST?>/" />
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||
|
<meta name="description" content="" />
|
||
|
<meta name="author" content="">
|
||
|
<meta name="keywords" content="" />
|
||
|
|
||
|
<!-- Optimized mobile viewport -->
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
||
|
<link href='http://fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
|
||
|
<link href="css/style.css" rel="stylesheet" />
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div class="top cf z-depth-1">
|
||
|
<header class="cf page-margined">
|
||
|
<nav class="cf g3">
|
||
|
<h1 class="pull-left"><a href="<?=GetLink("");?>"><img src="images/ff-mid.png" class="logo" /> Fortress Forever</a></h1>
|
||
|
<ul class="pull-right">
|
||
|
<li><a href="<?=GetLink("about");?>" class="<?=in_array($page, array("about", "changelogs")) ? "current-page" : ""?>">About</a></li>
|
||
|
<li><a href="<?=GetLink("development");?>" class="<?=in_array($page, array("development", "activity", "dev-journals", "contribute")) ? "current-page" : ""?>">Development</a></li>
|
||
|
<!--<li><a href="<?=GetLink("community");?>" class="<?=$page === "community" ? "current-page" : ""?>">Community</a></li>-->
|
||
|
<li><a href="<?=GetForumLink("");?>">Forums</a></li>
|
||
|
<li><a href="<?=GetLink("wiki");?>">Wiki</a></li>
|
||
|
</ul>
|
||
|
</nav>
|
||
|
</header>
|
||
|
</div>
|
||
|
<?
|
||
|
if (file_exists("pages/".$page.".php"))
|
||
|
{
|
||
|
require_once( "pages/".$page.".php" );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
require_once( "pages/404.php" );
|
||
|
}
|
||
|
?>
|
||
|
<footer class="cf">
|
||
|
<div class="page-margined">
|
||
|
<div class="g3">
|
||
|
<nav class="cf">
|
||
|
<ul>
|
||
|
<li><a href="https://github.com/fortressforever" class="simple-icon-link"><img style="background-color: rgb(65,131,196);" class="simple-icon" src="images/github-32.png" />Github</a></li>
|
||
|
<li><a href="http://www.youtube.com/user/fortressforever/" class="simple-icon-link"><img style="background-color: rgb(205,51,45);" class="simple-icon" src="images/youtube-32.png" />Youtube</a></li>
|
||
|
<li><a href="https://twitter.com/FortressForever" class="simple-icon-link"><img style="background-color: rgb(0,172,237);" class="simple-icon" src="images/twitter-32.png" />Twitter</a></li>
|
||
|
<li><a href="https://www.facebook.com/fortressforever" class="simple-icon-link"><img style="background-color: rgb(59,89,152);" class="simple-icon" src="images/facebook-32.png" />Facebook</a></li>
|
||
|
<li><a href="http://steamcommunity.com/groups/FortressForever" class="simple-icon-link"><img style="background-color: rgb(0,0,0);" class="simple-icon" src="images/steam-32.png" />Steam</a></li>
|
||
|
</ul>
|
||
|
</nav>
|
||
|
</div>
|
||
|
</div>
|
||
|
</footer>
|
||
|
</body></html>
|