fix url
This commit is contained in:
parent
a397fc5a5b
commit
b30535ebfc
|
@ -44,7 +44,7 @@ if (isset($_POST['xd_check'])){
|
|||
}
|
||||
//call the good act.php
|
||||
if(($currentArena <> "") && (file_exists("../src/arenas/".$currentArena."/act.php"))){
|
||||
require_once("../src/arenas/".$currentArena."/act.php");
|
||||
require_once("../src/arenas/".$currentArena."/act.php");
|
||||
}
|
||||
}
|
||||
//title
|
||||
|
@ -108,4 +108,4 @@ if($currentArena == ""){
|
|||
<footer>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -20,7 +20,7 @@ function tictactoe(bot1,bot2,xd_check){
|
|||
document.getElementById('fightResult').innerHTML = xhr.responseText;
|
||||
}
|
||||
}};
|
||||
xhr.open("POST", 'index.php', true);
|
||||
xhr.open("POST", '/tictactoe', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send('act=fight&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + xd_check);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user