starts dev connect four full json

This commit is contained in:
Gnieark 2016-06-17 21:38:36 +02:00
parent d48c81dce2
commit 73f5dd4e37
2 changed files with 0 additions and 13 deletions

View File

@ -50,7 +50,6 @@ switch ($_POST['act']){
die; die;
} }
$postValues[$p[0]]=$value; $postValues[$p[0]]=$value;
} }
//check if bots exists //check if bots exists
$bot1Exists = false; $bot1Exists = false;

View File

@ -76,18 +76,6 @@ function generate_numeric_select($start,$end,$selected,$name,$id){
} }
function get_IA_Response($iaUrl,$postParams){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $iaUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postParams);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
return htmlentities($output);
}
function place_ship_on_map($x1,$y1,$x2,$y2,$map){ function place_ship_on_map($x1,$y1,$x2,$y2,$map){
if ((($x1 <> $x2) && ($y1 <> $y2)) if ((($x1 <> $x2) && ($y1 <> $y2))
OR (!isset($map[$y1][$x1])) OR (!isset($map[$y1][$x1]))