diff --git a/html/index.php b/html/index.php index af46480..18acb36 100644 --- a/html/index.php +++ b/html/index.php @@ -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'])){ } ?>