.
This commit is contained in:
parent
e31fc90009
commit
d21452df12
|
@ -85,7 +85,7 @@ switch ($_POST['act']){
|
||||||
case "play":
|
case "play":
|
||||||
|
|
||||||
//check for correct game ID
|
//check for correct game ID
|
||||||
if($_POST['gameId'] !== $_SESSION['gameId']){
|
if($_POST['gameId'] !=== $_SESSION['gameId']){
|
||||||
echo '{"status":"error"}';
|
echo '{"status":"error"}';
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,6 @@ function applyInitMessage(req,xd_check){
|
||||||
}
|
}
|
||||||
addLog(ret['logs']);
|
addLog(ret['logs']);
|
||||||
if(ret['status'] == "OK"){
|
if(ret['status'] == "OK"){
|
||||||
alert(ret['gameId']);
|
|
||||||
play(ret['gameId'],xd_check);
|
play(ret['gameId'],xd_check);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user