botsArena/src/functions.php

13 lines
313 B
PHP
Raw Normal View History

2015-11-25 22:24:41 +01:00
<?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;
}