* All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * --> NOTICE <-- * This file is part of the core development branch, changing its contents will * make you unable to use the automatic updates manager. Please refer to the * documentation for further information about customizing Wootook. * */ /** * * @deprecated * @param unknown_type $TargetPlanet * @param unknown_type $Mode * @param unknown_type $TitleString */ function SpyTarget ( $TargetPlanet, $Mode, $TitleString ) { global $lang, $resource; $LookAtLoop = true; if ($Mode == 0) { $String = ""; $String .= ""; $String .= ""; $String .= ""; $String .= ""; $String .= ""; $String .= ""; $String .= ""; $LookAtLoop = false; } elseif ($Mode == 1) { $ResFrom[0] = 200; $ResTo[0] = 299; $Loops = 1; } elseif ($Mode == 2) { $ResFrom[0] = 400; $ResTo[0] = 499; $ResFrom[1] = 500; $ResTo[1] = 599; $Loops = 2; } elseif ($Mode == 3) { $ResFrom[0] = 1; $ResTo[0] = 99; $Loops = 1; } elseif ($Mode == 4) { $ResFrom[0] = 100; $ResTo[0] = 199; $Loops = 1; } if ($LookAtLoop == true) { $String = "
"; $String .= $TitleString ." ". $TargetPlanet['name']; $String .= " "; $String .= "[". $TargetPlanet["galaxy"] .":". $TargetPlanet["system"] .":". $TargetPlanet["planet"] ."]"; $String .= " le ". gmdate("d-m-Y H:i:s", time() + 2 * 60 * 60) ."
". $lang['Metal'] ."". pretty_number($TargetPlanet['metal']) ." ". $lang['Crystal'] ."". pretty_number($TargetPlanet['crystal']) ."
". $lang['Deuterium'] ."". pretty_number($TargetPlanet['deuterium']) ." ". $lang['Energy'] ."". pretty_number($TargetPlanet['energy_max']) ."
"; $Count = 0; $CurrentLook = 0; while ($CurrentLook < $Loops) { $row = 0; for ($Item = $ResFrom[$CurrentLook]; $Item <= $ResTo[$CurrentLook]; $Item++) { if ( $TargetPlanet[$resource[$Item]] > 0) { if ($row == 0) { $String .= ""; } $String .= ""; if ($row < SPY_REPORT_ROW - 1) { $String .= ""; } $Count += $TargetPlanet[$resource[$Item]]; $row++; if ($row == SPY_REPORT_ROW) { $String .= ""; $row = 0; } } } while ($row != 0) { $String .= ""; $row++; if ($row == SPY_REPORT_ROW) { $String .= ""; $row = 0; } } $CurrentLook++; } // while } $String .= "
". $TitleString ."
".$lang['tech'][$Item]."".$TargetPlanet[$resource[$Item]]." 
  
"; $return['String'] = $String; $return['Count'] = $Count; return $return; } ?>