arenas paths

pull/2/head
Gnieark 9 years ago
parent 2f3da7731a
commit 54f6239571

@ -46,10 +46,10 @@ if (isset($_POST['xd_check'])){
die; die;
} }
//call the good act.php //call the good act.php
if((isset($arenas['current'])) && (file_exists("src/arenas/act.php"))){ if($currentArena <> "") && (file_exists("../src/arenas/".$currentArena."/act.php"))){
require_once("src/arenas/act.php"); require_once("../src/arenas/".$currentArena."/act.php");
}else{ }else{
require_once("src/default/act.php"); require_once("../src/arenas/".$currentArena."/act.php");
} }
} }
@ -83,13 +83,24 @@ if (isset($_POST['xd_check'])){
} }
?> ?>
<h1><?php <h1><?php
if(isset($arenas['current'])){ if($currentArena=="")){
echo $arenas['current']['title']; echo $lang['SITE_NAME'];
}else{ }else{
echo $lang['SITE_NAME']; echo $arenas['current']['title'];
} ?></h1> } ?></h1>
</header> </header>
<section> <section>
<?php
switch($arena){
case "":
echo "<h2>Accueil</h2>";
break;
default:
include ("../src/arenas/".$currentArena."/public.php");
break;
}
?>
</section> </section>
<footer> <footer>
</footer> </footer>

@ -0,0 +1 @@
<h2>Battle ship</h2>

@ -0,0 +1 @@
<h2> tic tac toe </h2>
Loading…
Cancel
Save