Файл: adm/CombatReport.php
Строк: 56
<?php
##############################################################################
# * #
# * XG PROYECT #
# * #
# * @copyright Copyright (C) 2008 - 2009 By lucky from xgproyect.net #
# * #
# * #
# * 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. #
# * #
##############################################################################
define('INSIDE' , true);
define('INSTALL' , false);
$xgp_root = './../';
include($xgp_root . 'extension.inc.php');
include($xgp_root . 'common.'.$phpEx);
includeLang('INGAME');
$raportrow = doquery("SELECT * FROM {{table}} WHERE `rid` = '".(mysql_escape_string($_GET["raport"]))."';", 'rw', true);
if (($raportrow["owners"] == $user["id"]) && ($raportrow["a_zestrzelona"] == 1))
{
$Page .= "<td>".$lang['cr_lost_contact']."<br>";
$Page .= $lang['cr_first_round']."</td>";
}
else
{
$report = stripslashes($raportrow["raport"]);
foreach ($lang['tech_rc'] as $id => $s_name)
{
$str_replace1 = array("[ship[".$id."]]");
$str_replace2 = array($s_name);
$report = str_replace($str_replace1, $str_replace2, $report);
}
$no_fleet = "<table border=1 align="center"><tr><th>".$lang['cr_type']."</th></tr><tr><th>".$lang['cr_total']."</th></tr><tr><th>".$lang['cr_weapons']."</th></tr><tr><th>".$lang['cr_shields']."</th></tr><tr><th>".$lang['cr_armor']."</th></tr></table>";
$destroyed = "<table border=1 align="center"><tr><th><font color="red"><strong>".$lang['cr_destroyed']."</strong></font></th></tr></table>";
$str_replace1 = array($no_fleet);
$str_replace2 = array($destroyed);
$report = str_replace($str_replace1, $str_replace2, $report);
$Page .= $report;
}
display($Page, false, '', false, false);
?>