function ShowQuickEditorPage() { global $USER, $LNG, $db, $reslist, $resource; $action = request_var('action', ''); $edit = request_var('edit', ''); $id = request_var('id', 0); switch ($edit) { case 'planet': $DataIDs = array_merge($reslist['fleet'], $reslist['build'], $reslist['defense']); foreach ($DataIDs as $ID) { $SpecifyItemsPQ .= "`" . $resource[$ID] . "`,"; } $PlanetData = $db->uniquequery("SELECT " . $SpecifyItemsPQ . " `name`, `id_owner`, `planet_type`, `galaxy`, `system`, `planet`, `destruyed`, `diameter`, `field_current`, `field_current`, `field_max`, `temp_min`, `temp_max`, `metal`, `crystal`, `deuterium` FROM " . PLANETS . " WHERE `id` = '" . $id . "';"); $reslist['build'] = $reslist['allow'][$PlanetData['planet_type']]; if ($action == 'send') { $SQL = "UPDATE " . PLANETS . " SET "; foreach ($DataIDs as $ID) { $SQL .= "`" . $resource[$ID] . "` = '" . request_outofint($resource[$ID]) . "', "; } $SQL .= "`metal` = '" . request_outofint('metal') . "', "; $SQL .= "`crystal` = '" . request_outofint('crystal') . "', "; $SQL .= "`deuterium` = '" . request_outofint('deuterium') . "', "; $SQL .= "`field_max` = '" . request_var('field_max', 0) . "', "; $SQL .= "`name` = '" . $db->sql_escape(request_var('name', '', UTF8_SUPPORT)) . "' "; $SQL .= "WHERE `id` = '" . $id . "' AND `universe` = '" . $_SESSION['adminuni'] . "';"; $db->query($SQL); exit(sprintf($LNG['qe_edit_planet_sucess'], $PlanetData['name'], $PlanetData['galaxy'], $PlanetData['system'], $PlanetData['planet'])); } $UserInfo = $db->uniquequery("SELECT `username` FROM " . USERS . " WHERE `id` = '" . $PlanetData['id_owner'] . "' AND `universe` = '" . $_SESSION['adminuni'] . "';"); $build = $defense = $fleet = array(); foreach ($reslist['build'] as $ID) { $build[] = array('type' => $resource[$ID], 'name' => $LNG['tech'][$ID], 'count' => pretty_number($PlanetData[$resource[$ID]]), 'input' => $PlanetData[$resource[$ID]]); } foreach ($reslist['fleet'] as $ID) { $fleet[] = array('type' => $resource[$ID], 'name' => $LNG['tech'][$ID], 'count' => pretty_number($PlanetData[$resource[$ID]]), 'input' => $PlanetData[$resource[$ID]]); } foreach ($reslist['defense'] as $ID) { $defense[] = array('type' => $resource[$ID], 'name' => $LNG['tech'][$ID], 'count' => pretty_number($PlanetData[$resource[$ID]]), 'input' => $PlanetData[$resource[$ID]]); } $template = new template(); $template->assign_vars(array('qe_resources' => $LNG['qe_resources'], 'Metal' => $LNG['Metal'], 'Crystal' => $LNG['Crystal'], 'Deuterium' => $LNG['Deuterium'], 'qe_defensive' => $LNG['qe_defensive'], 'qe_fleet' => $LNG['qe_fleet'], 'qe_build' => $LNG['qe_build'], 'qe_input' => $LNG['qe_input'], 'qe_count' => $LNG['qe_count'], 'qe_level' => $LNG['qe_level'], 'qe_name' => $LNG['qe_name'], 'qe_reset' => $LNG['qe_reset'], 'qe_send' => $LNG['qe_send'], 'qe_temp' => $LNG['qe_temp'], 'qe_fields' => $LNG['qe_fields'], 'qe_owner' => $LNG['qe_owner'], 'qe_coords' => $LNG['qe_coords'], 'qe_id' => $LNG['qe_id'], 'qe_info' => $LNG['qe_info'], 'build' => $build, 'fleet' => $fleet, 'defense' => $defense, 'id' => $id, 'ownerid' => $PlanetData['id_owner'], 'ownername' => $UserInfo['username'], 'name' => $PlanetData['name'], 'galaxy' => $PlanetData['galaxy'], 'system' => $PlanetData['system'], 'planet' => $PlanetData['planet'], 'field_min' => $PlanetData['field_current'], 'field_max' => $PlanetData['field_max'], 'temp_min' => $PlanetData['temp_min'], 'temp_max' => $PlanetData['temp_max'], 'metal' => floattostring($PlanetData['metal']), 'crystal' => floattostring($PlanetData['crystal']), 'deuterium' => floattostring($PlanetData['deuterium']), 'metal_c' => pretty_number($PlanetData['metal']), 'crystal_c' => pretty_number($PlanetData['crystal']), 'deuterium_c' => pretty_number($PlanetData['deuterium']))); $template->show('adm/QuickEditorPlanet.tpl'); break; case 'player': foreach ($reslist['tech'] as $ID) { $SpecifyItemsPQ .= "`" . $resource[$ID] . "`,"; } $UserData = $db->uniquequery("SELECT " . $SpecifyItemsPQ . " `username`, `authlevel`, `galaxy`, `system`, `planet`, `id_planet`, `darkmatter` FROM " . USERS . " WHERE `id` = '" . $id . "';"); $ChangePW = $USER['id'] == 1 || $id != 1 && $USER['authlevel'] > $UserData['authlevel']; if ($action == 'send') { $SQL = "UPDATE " . USERS . " SET "; foreach ($reslist['tech'] as $ID) { $SQL .= "`" . $resource[$ID] . "` = '" . abs(request_var($resource[$ID], 0)) . "', "; } $SQL .= "`darkmatter` = '" . max(request_var('darkmatter', 0), 0) . "', "; if (!empty($_POST['password']) && $ChangePW) { $SQL .= "`password` = '" . md5(request_var('password', '', true)) . "', "; } $SQL .= "`username` = '" . $db->sql_escape(request_var('name', '', UTF8_SUPPORT)) . "' "; $SQL .= "WHERE `id` = '" . $id . "' AND `universe` = '" . $_SESSION['adminuni'] . "';"; $db->query($SQL); exit(sprintf($LNG['qe_edit_player_sucess'], $UserData['username'], $id)); } $PlanetInfo = $db->uniquequery("SELECT `name` FROM " . PLANETS . " WHERE `id` = '" . $UserData['id_planet'] . "' AND `universe` = '" . $_SESSION['adminuni'] . "';"); $tech = array(); foreach ($reslist['tech'] as $ID) { $tech[] = array('type' => $resource[$ID], 'name' => $LNG['tech'][$ID], 'count' => pretty_number($UserData[$resource[$ID]]), 'input' => $UserData[$resource[$ID]]); } $template = new template(); $template->assign_vars(array('qe_resources' => $LNG['qe_resources'], 'Darkmatter' => $LNG['Darkmatter'], 'qe_tech' => $LNG['qe_tech'], 'qe_input' => $LNG['qe_input'], 'qe_level' => $LNG['qe_level'], 'qe_name' => $LNG['qe_name'], 'qe_reset' => $LNG['qe_reset'], 'qe_send' => $LNG['qe_send'], 'qe_password' => $LNG['qe_password'], 'qe_owner' => $LNG['qe_owner'], 'qe_hpcoords' => $LNG['qe_hpcoords'], 'qe_id' => $LNG['qe_id'], 'qe_info' => $LNG['qe_info'], 'qe_change' => $LNG['qe_change'], 'tech' => $tech, 'id' => $id, 'planetid' => $UserData['id_planet'], 'planetname' => $PlanetInfo['name'], 'name' => $UserData['username'], 'galaxy' => $UserData['galaxy'], 'system' => $UserData['system'], 'planet' => $UserData['planet'], 'ChangePW' => $ChangePW, 'darkmatter' => floattostring($UserData['darkmatter']), 'darkmatter_c' => pretty_number($UserData['darkmatter']))); $template->show('adm/QuickEditorUser.tpl'); break; } }
public static function ShowFleet3Page() { global $USER, $PLANET, $resource, $pricelist, $reslist, $CONF, $db, $LNG, $UNI; include_once ROOT_PATH . 'includes/functions/IsVacationMode.php'; $template = new template(); $template->loadscript('flotten.js'); $template->gotoside('?page=fleet'); $mission = request_var('mission', 3); $galaxy = request_var('galaxy', 0); $system = request_var('system', 0); $planet = request_var('planet', 0); $planettype = request_var('planettype', 0); $fleet_group = request_var('fleet_group', 0); $GenFleetSpeed = request_var('speed', 0); $TransportMetal = request_outofint('metal'); $TransportCrystal = request_outofint('crystal'); $TransportDeuterium = request_outofint('deuterium'); $TransportNorio = request_outofint('norio'); $holdingtime = request_var('holdingtime', 0); $rawfleetarray = request_var('usedfleet', '', true); if (IsVacationMode($USER)) { exit($template->message($LNG['fl_vacation_mode_active'], 'game.php?page=overview', 2)); } if ($_SESSION['last']['user_side'] != 'game.php?page=fleet2') { parent::GotoFleetPage(); } if (!($planettype >= 1 || $planettype <= 3)) { parent::GotoFleetPage(); } if ($PLANET['galaxy'] == $galaxy && $PLANET['system'] == $system && $PLANET['planet'] == $planet && $PLANET['planet_type'] == $planettype) { parent::GotoFleetPage(); } if ($galaxy > MAX_GALAXY_IN_WORLD || $galaxy < 1 || $system > MAX_SYSTEM_IN_GALAXY || $system < 1 || $planet > MAX_PLANET_IN_SYSTEM + 1 || $planet < 1) { parent::GotoFleetPage(); } if (empty($mission)) { parent::GotoFleetPage(); } if (!is_numeric($TransportMetal) || !is_numeric($TransportCrystal) || !is_numeric($TransportDeuterium) || !is_numeric($TransportNorio)) { parent::GotoFleetPage(); } if ($TransportMetal + $TransportCrystal + $TransportDeuterium + $TransportNorio < 1 && $mission == 3) { $template->message("<font color=\"lime\"><b>" . $LNG['fl_empty_transport'] . "</b></font>", "game.php?page=fleet", 1); exit; } $ActualFleets = parent::GetCurrentFleets($USER['id']); if (parent::GetMaxFleetSlots($USER) <= $ActualFleets) { $template->message($LNG['fl_no_slots'], "game.php?page=fleet", 1); exit; } $fleet_group_mr = 0; if (!empty($fleet_group) && $mission == 2) { $aks_count_mr = $db->uniquequery("SELECT COUNT(*) as state FROM " . AKS . " WHERE `id` = '" . $fleet_group . "' AND `eingeladen` LIKE '%" . $USER['id'] . "%';"); if ($aks_count_mr['state'] > 0) { $fleet_group_mr = $fleet_group; } else { $mission = 1; } } $ActualFleets = parent::GetCurrentFleets($USER['id']); $TargetPlanet = $db->uniquequery("SELECT `id`, `id_owner`,`id_level`,`destruyed`,`ally_deposit` FROM " . PLANETS . " WHERE `universe` = '" . $UNI . "' AND `galaxy` = '" . $galaxy . "' AND `system` = '" . $system . "' AND `planet` = '" . $planet . "' AND `planet_type` = '" . ($planettype == 2 ? 1 : $planettype) . "';"); if ($mission != 15 && $TargetPlanet["destruyed"] != 0 || $mission != 15 && $mission != 7 && empty($TargetPlanet['id_owner'])) { parent::GotoFleetPage(); } $MyDBRec = $USER; $FleetArray = parent::GetFleetArray($rawfleetarray); if (!is_array($FleetArray)) { parent::GotoFleetPage(); } $FleetStorage = 0; $FleetShipCount = 0; $fleet_array = ""; $FleetSubQRY = ""; foreach ($FleetArray as $Ship => $Count) { if ($Count > $PLANET[$resource[$Ship]] || $Count < 0) { parent::GotoFleetPage(); } $FleetStorage += $pricelist[$Ship]["capacity"] * $Count; $FleetShipCount += $Count; $fleet_array .= $Ship . "," . $Count . ";"; $FleetSubQRY .= "`" . $resource[$Ship] . "` = `" . $resource[$Ship] . "` - '" . floattostring($Count) . "', "; } $error = 0; $fleetmission = $mission; $YourPlanet = false; $UsedPlanet = false; if ($mission == 11) { $maxexpde = parent::GetCurrentFleets($USER['id'], 11); if ($maxexpde >= MAX_DM_MISSIONS) { $template->message("<font color=\"red\"><b>" . $LNG['fl_expedition_fleets_limit'] . "</b></font>", "game.php?page=fleet", 2); exit; } } elseif ($mission == 15) { $MaxExpedition = $USER[$resource[124]]; if ($MaxExpedition == 0) { $template->message("<font color=\"red\"><b>" . $LNG['fl_expedition_tech_required'] . "</b></font>", "game.php?page=fleet", 2); exit; } $ExpeditionEnCours = parent::GetCurrentFleets($USER['id'], 15); $EnvoiMaxExpedition = floor(sqrt($MaxExpedition)); if ($ExpeditionEnCours >= $EnvoiMaxExpedition) { $template->message("<font color=\"red\"><b>" . $LNG['fl_expedition_fleets_limit'] . "</b></font>", "game.php?page=fleet", 2); exit; } } $YourPlanet = isset($TargetPlanet['id_owner']) && $TargetPlanet['id_owner'] == $USER['id'] ? true : false; $UsedPlanet = isset($TargetPlanet['id_owner']) ? true : false; $HeDBRec = $YourPlanet ? $MyDBRec : GetUserByID($TargetPlanet['id_owner'], array('id', 'onlinetime', 'ally_id', 'urlaubs_modus', 'banaday')); if ($HeDBRec['urlaubs_modus'] && $mission != 8) { $template->message("<font color=\"lime\"><b>" . $LNG['fl_in_vacation_player'] . "</b></font>", "game.php?page=fleet", 2); exit; } if (!$YourPlanet && ($mission == 1 || $mission == 2 || $mission == 5 || $mission == 6 || $mission == 9)) { if ($TargetPlanet['id_level'] > $USER['authlevel'] && $CONF['adm_attack'] == 1) { $template->message("<font color=\"red\"><b>" . $LNG['fl_admins_cannot_be_attacked'] . "</b></font>", "game.php?page=fleet", 2); exit; } $UserPoints = $USER; $User2Points = $db->uniquequery("SELECT `total_points` FROM " . STATPOINTS . " WHERE `stat_type` = '1' AND `id_owner` = '" . $HeDBRec['id'] . "';"); $IsNoobProtec = CheckNoobProtec($UserPoints, $User2Points, $HeDBRec); if ($IsNoobProtec['NoobPlayer']) { $template->message("<font color=\"lime\"><b>" . $LNG['fl_week_player'] . "</b></font>", "game.php?page=fleet", 2); exit; } elseif ($IsNoobProtec['StrongPlayer']) { $template->message("<font color=\"red\"><b>" . $LNG['fl_strong_player'] . "</b></font>", "game.php?page=fleet", 2); exit; } } if ($mission == 5) { if ($TargetPlanet['ally_deposit'] < 1) { $template->message("<font color=\"red\"><b>" . $LNG['fl_not_ally_deposit'] . "</b></font>", "game.php?page=fleet", 2); exit; } $buddy = $db->uniquequery("SELECT COUNT(*) as state FROM " . BUDDY . " WHERE `active` = '1' AND (`owner` = '" . $HeDBRec['id'] . "' AND `sender` = '" . $MyDBRec['id'] . "') OR (`owner` = '" . $MyDBRec['id'] . "' AND `sender` = '" . $HeDBRec['id'] . "');"); if ($HeDBRec['ally_id'] != $MyDBRec['ally_id'] && $buddy['state'] == 0) { $template->message("<font color=\"red\"><b>" . $LNG['fl_no_same_alliance'] . "</b></font>", "game.php?page=fleet", 2); exit; } } if (!parent::CheckUserSpeed($GenFleetSpeed) || !array_key_exists($mission, parent::GetAvailableMissions(array('CurrentUser' => $USER, 'galaxy' => $galaxy, 'system' => $system, 'planet' => $planet, 'planettype' => $planettype, 'IsAKS' => $fleet_group, 'Ship' => $FleetArray)))) { parent::GotoFleetPage(); } $MaxFleetSpeed = parent::GetFleetMaxSpeed($FleetArray, $USER); $SpeedFactor = parent::GetGameSpeedFactor(); $distance = parent::GetTargetDistance($PLANET['galaxy'], $galaxy, $PLANET['system'], $system, $PLANET['planet'], $planet); $duration = parent::GetMissionDuration($GenFleetSpeed, $MaxFleetSpeed, $distance, $SpeedFactor, $USER); $consumption = parent::GetFleetConsumption($FleetArray, $duration, $distance, $MaxFleetSpeed, $USER, $SpeedFactor); $fleet['start_time'] = $duration + TIMESTAMP; if ($mission == 15) { $StayDuration = max($holdingtime, 1) * 3600 / $CONF['halt_speed']; $StayTime = $fleet['start_time'] + $StayDuration; } elseif ($mission == 5) { $StayDuration = $holdingtime * 3600; $StayTime = $fleet['start_time'] + $StayDuration; } elseif ($mission == 11) { $StayDuration = 3600 / $CONF['halt_speed']; $StayTime = $fleet['start_time'] + $StayDuration; } else { $StayDuration = 0; $StayTime = 0; } $fleet['end_time'] = $StayDuration + 2 * $duration + TIMESTAMP; $FleetStorage -= $consumption; $PlanetRess = new ResourceUpdate(); $PlanetRess->CalcResource(); $TransportMetal = min($TransportMetal, $PLANET['metal']); $TransportCrystal = min($TransportCrystal, $PLANET['crystal']); $TransportDeuterium = min($TransportDeuterium, $PLANET['deuterium'] - $consumption); $TransportNorio = min($TransportNorio, $PLANET['norio']); $StorageNeeded = $TransportMetal + $TransportCrystal + $TransportDeuterium + $TransportNorio; $StockMetal = $PLANET['metal']; $StockCrystal = $PLANET['crystal']; $StockDeuterium = $PLANET['deuterium']; $StockDeuterium -= $consumption; $StockNorio = $PLANET['norio']; if ($PLANET['deuterium'] < $consumption) { $template->message("<font color=\"red\"><b>" . sprintf($LNG['fl_no_enought_deuterium'], $LNG['Deuterium'], pretty_number($consumption - $PLANET['deuterium']), $LNG['Deuterium']) . "</b></font>", "game.php?page=fleet", 2); exit; } if ($StorageNeeded > $FleetStorage) { $template->message("<font color=\"red\"><b>" . $LNG['fl_no_enought_cargo_capacity'] . pretty_number($StorageNeeded - $FleetStorage) . "</b></font>", "game.php?page=fleet", 2); exit; } $PLANET['metal'] -= $TransportMetal; $PLANET['crystal'] -= $TransportCrystal; $PLANET['deuterium'] -= $TransportDeuterium + $consumption; $PLANET['norio'] -= $TransportNorio; $PlanetRess->SavePlanetToDB(); if (connection_aborted()) { exit; } if ($fleet_group_mr != 0) { $AksStartTime = $db->uniquequery("SELECT MAX(`fleet_start_time`) AS Start FROM " . FLEETS . " WHERE `fleet_group` = '" . $fleet_group_mr . "' AND '" . MAX_FLEETS_PER_ACS . "' > (SELECT COUNT(*) FROM " . FLEETS . " WHERE `fleet_group` = '" . $fleet_group_mr . "');"); if (isset($AksStartTime)) { if ($AksStartTime['Start'] >= $fleet['start_time']) { $fleet['end_time'] += $AksStartTime['Start'] - $fleet['start_time']; $fleet['start_time'] = $AksStartTime['Start']; } else { $SQLFleets = "UPDATE " . FLEETS . " SET "; $SQLFleets .= "`fleet_start_time` = '" . $fleet['start_time'] . "', "; $SQLFleets .= "`fleet_end_time` = fleet_end_time + '" . ($fleet['start_time'] - $AksStartTime['Start']) . "' "; $SQLFleets .= "WHERE "; $SQLFleets .= "`fleet_group` = '" . $fleet_group_mr . "';"; $db->query($SQLFleets); $fleet['end_time'] += $fleet['start_time'] - $AksStartTime['Start']; } } else { $mission = 1; } } $QryInsertFleet = "LOCK TABLE " . FLEETS . " WRITE, " . PLANETS . " WRITE;\r\n\t\t\t\t\t\t\tINSERT INTO " . FLEETS . " SET \r\n\t\t\t\t\t\t\t`fleet_owner` = '" . $USER['id'] . "', \r\n\t\t\t\t\t\t\t`fleet_mission` = '" . $mission . "',\r\n\t\t\t\t\t\t\t`fleet_amount` = '" . $FleetShipCount . "',\r\n\t\t\t\t\t\t `fleet_array` = '" . $fleet_array . "',\r\n\t\t\t\t\t\t `fleet_universe` = '" . $UNI . "',\r\n\t\t\t\t\t\t\t`fleet_start_time` = '" . $fleet['start_time'] . "',\r\n\t\t\t\t\t\t\t`fleet_start_id` = '" . $PLANET['id'] . "',\r\n\t\t\t\t\t\t\t`fleet_start_galaxy` = '" . $PLANET['galaxy'] . "',\r\n\t\t\t\t\t\t\t`fleet_start_system` = '" . $PLANET['system'] . "',\r\n\t\t\t\t\t\t\t`fleet_start_planet` = '" . $PLANET['planet'] . "',\r\n\t\t\t\t\t\t\t`fleet_start_type` = '" . $PLANET['planet_type'] . "',\r\n\t\t\t\t\t\t\t`fleet_end_time` = '" . $fleet['end_time'] . "',\r\n\t\t\t\t\t\t\t`fleet_end_stay` = '" . $StayTime . "',\r\n\t\t\t\t\t\t\t`fleet_end_id` = '" . (int) $TargetPlanet['id'] . "',\r\n\t\t\t\t\t\t\t`fleet_end_galaxy` = '" . $galaxy . "',\r\n\t\t\t\t\t\t\t`fleet_end_system` = '" . $system . "',\r\n\t\t\t\t\t\t\t`fleet_end_planet` = '" . $planet . "',\r\n\t\t\t\t\t\t\t`fleet_end_type` = '" . $planettype . "',\r\n\t\t\t\t\t\t\t`fleet_resource_metal` = '" . floattostring($TransportMetal) . "',\r\n\t\t\t\t\t\t\t`fleet_resource_crystal` = '" . floattostring($TransportCrystal) . "',\r\n\t\t\t\t\t\t\t`fleet_resource_deuterium` = '" . floattostring($TransportDeuterium) . "',\r\n\t\t\t\t\t\t\t`fleet_resource_norio` = '" . floattostring($TransportNorio) . "',\r\n\t\t\t\t\t\t\t`fleet_target_owner` = '" . (int) $TargetPlanet['id_owner'] . "',\r\n\t\t\t\t\t\t\t`fleet_group` = '" . $fleet_group_mr . "',\r\n\t\t\t\t\t\t\t`start_time` = '" . TIMESTAMP . "';\r\n\t\t\t\t\t\t\tUPDATE `" . PLANETS . "` SET\r\n\t\t\t\t\t\t\t" . substr($FleetSubQRY, 0, -2) . "\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t`id` = " . $PLANET['id'] . " LIMIT 1;\r\n\t\t\t\t\t\t\tUNLOCK TABLES;"; $db->multi_query($QryInsertFleet); foreach ($FleetArray as $Ship => $Count) { $FleetList[$LNG['tech'][$Ship]] = pretty_number($Count); } $template->assign_vars(array('mission' => $LNG['type_mission'][$mission], 'distance' => pretty_number($distance), 'consumption' => pretty_number($consumption), 'from' => $PLANET['galaxy'] . ":" . $PLANET['system'] . ":" . $PLANET['planet'], 'destination' => $galaxy . ":" . $system . ":" . $planet, 'start_time' => date(TDFORMAT, $fleet['start_time']), 'end_time' => date(TDFORMAT, $fleet['end_time']), 'speedallsmin' => $MaxFleetSpeed, 'FleetList' => $FleetList, 'fl_fleet_sended' => $LNG['fl_fleet_sended'], 'fl_mission' => $LNG['fl_mission'], 'fl_from' => $LNG['fl_from'], 'fl_destiny' => $LNG['fl_destiny'], 'fl_distance' => $LNG['fl_distance'], 'fl_fleet_speed' => $LNG['fl_fleet_speed'], 'fl_fuel_consumption' => $LNG['fl_fuel_consumption'], 'fl_fromfl_destiny' => $LNG['fl_fromfl_destiny'], 'fl_arrival_time' => $LNG['fl_arrival_time'], 'fl_return_time' => $LNG['fl_return_time'], 'fl_fleet' => $LNG['fl_fleet'])); $template->show('fleet3_table.tpl'); }