arenas list

This commit is contained in:
Gnieark 2015-11-25 22:24:41 +01:00
parent 06076bde36
commit 2f812be4fd
2 changed files with 21 additions and 0 deletions

8
src/arenas_lists.php Normal file
View File

@ -0,0 +1,8 @@
<?php
arenas=array(
array(
'id' => "tictactoe",
'url' => "/tictactoe"
)
);

View File

@ -0,0 +1,13 @@
<?php
function arenas_get_list(){
include (__DIR__."/arenas_lists.php");
if(isset($_GET['arena'])){
foreach ($arenas as $arena){
if($arena['id'] == $_GET['arena']){
$arenas['current'] = $arena;
break;
}
}
}
return $arenas;
}