check game ID on AJAX communications
This commit is contained in:
parent
0e8ac74417
commit
ab4cd8eb3a
|
@ -65,14 +65,9 @@ switch ($_POST['act']){
|
||||||
get_IA_Response($_SESSION['bot2']['url'],$params[1]); //don't care about result
|
get_IA_Response($_SESSION['bot2']['url'],$params[1]); //don't care about result
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//echo "plop".json_encode($_SESSION['map']);
|
|
||||||
|
|
||||||
case "fight":
|
case "fight":
|
||||||
|
|
||||||
if(
|
if(($_SESSION['game'] <> "connectFou") || ((!$new) && ($_POST['gameId'] <> $_SESSION['matchId']))){
|
||||||
($_SESSION['game'] <> "connectFou") || ((!$new) && ($_POST['gameId'] <> $_SESSION['matchId'))
|
|
||||||
){
|
|
||||||
error(500,"game non found");
|
error(500,"game non found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user