This commit is contained in:
Gnieark 2016-07-03 12:35:55 +02:00
parent ab64427ec8
commit 0be20dea4d

View File

@ -70,12 +70,21 @@ switch ($_POST['act']){
}
//save bots on session var
$_SESSION['bots'] = serialize($bots);
$_SESSION['gameId'] = $gameId;
echo json_encode(array(
'status' => 'OK',
'logs' => $logs
'logs' => $logs,
'gameId' => $gameId
));
die;
break;
case "play":
print_r($_SESSION);
break;
default:
break;