cast post var
This commit is contained in:
parent
76d0bfd342
commit
306413458e
|
@ -207,11 +207,11 @@ switch($_POST['act']){
|
|||
echo json_encode($shipsCoords);
|
||||
break;
|
||||
case "fight":
|
||||
if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){
|
||||
// if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){
|
||||
echo rand(0,$_POST['width']).",".$_POST['height'];
|
||||
}else{
|
||||
echo "boaf".$_POST['width']."-".$_POST['height'];
|
||||
}
|
||||
// }else{
|
||||
// echo "boaf".$_POST['width']."-".$_POST['height'];
|
||||
// }
|
||||
|
||||
|
||||
die;
|
||||
|
|
Loading…
Reference in New Issue
Block a user