Merge pull request #59 from gnieark/dev

Dev
This commit is contained in:
Gnieark 2016-06-06 11:21:48 +02:00
commit 96714957fb
2 changed files with 20 additions and 3 deletions

View File

@ -245,9 +245,18 @@ if (isset($_POST['xd_check'])){
<body>
<header>
<h1><?php echo $siteTitle; ?></h1>
<nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a>&nbsp;<a href="<?php echo $currentArena; ?>-en">en</a></nav>
<nav id="menus"><a href="/"<?php if(($currentArena == "") && (!isset($_GET['doc']))) echo ' class="selected"'; ?>><?php echo $lang['HOME']; ?></a>
<?php
if(isset($_GET['doc'])){
echo '<nav id="languages"><a href="/'.$currentArena.'/doc-fr">fr</a>&nbsp;<a href="/'.$currentArena.'/doc-en">en</a></nav>';
}else{
echo '<nav id="languages"><a href="/'. $currentArena.'-fr">fr</a>&nbsp;<a href="/'.$currentArena.'-en">en</a></nav>';
}
echo '<nav id="menus"><a href="/"';
if(($currentArena == "") && (!isset($_GET['doc']))){
echo ' class="selected"';
}
echo '>'.$lang['HOME'].'</a>';
foreach($arenas as $arena){
if( $arena['id'] == $currentArena){

View File

@ -106,7 +106,15 @@ function error($code,$message){
switch($code){
case 404:
header("HTTP/1.0 404 Not Found");
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8" /><title>Page Not found</title></head><body><p>'.$message.'</p></body></html>';
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8" /><title>Page Not found</title></head><body><p>'.$message.'</p>
<pre>
_ _ ___ _ _
| || | / _ \| || |
| || |_| | | | || |_
|__ _| | | |__ _|
| | | |_| | | |
|_| \___/ |_|
</pre><p><a href="/">Go to home page</a></p></body></html>';
die;
case 400:
header ("HTTP/1.0 400 Bad Request");