arenas paths
This commit is contained in:
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'];
|
|
||||||
}else{
|
|
||||||
echo $lang['SITE_NAME'];
|
echo $lang['SITE_NAME'];
|
||||||
|
|
||||||
|
}else{
|
||||||
|
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>
|
||||||
|
|
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