arenas paths
This commit is contained in:
parent
2f3da7731a
commit
54f6239571
|
@ -46,10 +46,10 @@ if (isset($_POST['xd_check'])){
|
|||
die;
|
||||
}
|
||||
//call the good act.php
|
||||
if((isset($arenas['current'])) && (file_exists("src/arenas/act.php"))){
|
||||
require_once("src/arenas/act.php");
|
||||
if($currentArena <> "") && (file_exists("../src/arenas/".$currentArena."/act.php"))){
|
||||
require_once("../src/arenas/".$currentArena."/act.php");
|
||||
}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
|
||||
if(isset($arenas['current'])){
|
||||
echo $arenas['current']['title'];
|
||||
if($currentArena=="")){
|
||||
echo $lang['SITE_NAME'];
|
||||
|
||||
}else{
|
||||
echo $lang['SITE_NAME'];
|
||||
echo $arenas['current']['title'];
|
||||
} ?></h1>
|
||||
</header>
|
||||
<section>
|
||||
<?php
|
||||
switch($arena){
|
||||
case "":
|
||||
echo "<h2>Accueil</h2>";
|
||||
break;
|
||||
default:
|
||||
include ("../src/arenas/".$currentArena."/public.php");
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
<footer>
|
||||
</footer>
|
||||
|
|
1
src/arenas/Battleship/public.php
Normal file
1
src/arenas/Battleship/public.php
Normal file
|
@ -0,0 +1 @@
|
|||
<h2>Battle ship</h2>
|
1
src/arenas/tictactoe/public.php
Normal file
1
src/arenas/tictactoe/public.php
Normal file
|
@ -0,0 +1 @@
|
|||
<h2> tic tac toe </h2>
|
Loading…
Reference in New Issue
Block a user