commit
96714957fb
|
@ -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> <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> <a href="/'.$currentArena.'/doc-en">en</a></nav>';
|
||||
}else{
|
||||
echo '<nav id="languages"><a href="/'. $currentArena.'-fr">fr</a> <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){
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user