arenas list
This commit is contained in:
parent
06076bde36
commit
2f812be4fd
8
src/arenas_lists.php
Normal file
8
src/arenas_lists.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
arenas=array(
|
||||
array(
|
||||
'id' => "tictactoe",
|
||||
'url' => "/tictactoe"
|
||||
)
|
||||
|
||||
);
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user