From 306413458e9960430596cce3136047f37112116c Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 18 Dec 2015 20:44:02 +0100 Subject: [PATCH] cast post var --- html/StupidIABattleship.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index fd59d89..8455737 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -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;