From b30535ebfc5bb4204e63010f5633dac9398add4a Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 28 Nov 2015 15:44:16 +0100 Subject: [PATCH] fix url --- html/index.php | 4 ++-- src/arenas/tictactoe/js.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/index.php b/html/index.php index ce54b79..16af2ac 100644 --- a/html/index.php +++ b/html/index.php @@ -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 == ""){ - \ No newline at end of file + diff --git a/src/arenas/tictactoe/js.js b/src/arenas/tictactoe/js.js index 465aaeb..27908da 100644 --- a/src/arenas/tictactoe/js.js +++ b/src/arenas/tictactoe/js.js @@ -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); -} \ No newline at end of file +}