private function getFleetCheck($t_coord) { //POST /game/index.php?page=fleetcheck&ajax=1&espionage=0 HTTP/1.1\r\n //galaxy=1&system=104&planet=13&type=1 $COOKIE_FILE = $this->Config['COOKIE_FILE']; $FLEETCHECK = $this->Config['FLEETCHECK']; $url = $FLEETCHECK . "&ajax=1&espionage=0"; $data = "galaxy=" . $t_coord[0] . "&"; $data .= "system=" . $t_coord[1] . "&"; $data .= "planet=" . $t_coord[2] . "&"; if (isset($t_coord[3]) && $t_coord[3] != NULL) { $data .= "type=" . $t_coord[3]; } else { $data .= "type=1"; } $data = GlobalFunc::uriToJson($data); return GlobalFunc::httpPost($url, $data, $COOKIE_FILE); }