Неиспользуемая переменная в функции отображения игрока.
This commit is contained in:
parent
d78a9c65dd
commit
c531fcf8ff
@ -149,7 +149,7 @@ $fbattle = new fbattle($user['battle']);
|
|||||||
<table width=250 cellspacing=0 cellpadding=0>
|
<table width=250 cellspacing=0 cellpadding=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign=top width=250 nowrap>
|
<td valign=top width=250 nowrap>
|
||||||
<?php echo showinf_pers($user['id'], 1, 1, 1); ?>
|
<?php echo showinf_pers($user['id'], 1, 1); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -484,7 +484,7 @@ $fbattle = new fbattle($user['battle']);
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($fbattle->return == 1) {
|
if ($fbattle->return == 1) {
|
||||||
echo showinf_pers($fbattle->enemy, 1, 1);
|
echo showinf_pers($fbattle->enemy, 1);
|
||||||
} else {
|
} else {
|
||||||
if ($fbattle->battle_data['type'] == 4 || $fbattle->battle_data['type'] == 5) {
|
if ($fbattle->battle_data['type'] == 4 || $fbattle->battle_data['type'] == 5) {
|
||||||
$a = array(6, 16);
|
$a = array(6, 16);
|
||||||
|
@ -662,11 +662,10 @@ function ClanImage($clan_id)
|
|||||||
{
|
{
|
||||||
$clanimg = db::c()->query('SELECT `short` FROM `clans` WHERE `id` = ?i ', $clan_id)->fetch_assoc();
|
$clanimg = db::c()->query('SELECT `short` FROM `clans` WHERE `id` = ?i ', $clan_id)->fetch_assoc();
|
||||||
if ($clanimg['short']) {
|
if ($clanimg['short']) {
|
||||||
$clanimg = $clanimg['short'];
|
return $clanimg['short'];
|
||||||
} else {
|
} else {
|
||||||
$clanimg = "1x1";
|
return "1x1";
|
||||||
}
|
}
|
||||||
return $clanimg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function GiveExp($id, $exp)
|
function GiveExp($id, $exp)
|
||||||
@ -917,7 +916,7 @@ function timetoheals($user)
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXME 37 запросов! ТРИДЦАТЬ СЕМЬ! Чтобы отобразить предметы на персонаже.
|
function showinf_pers($id, $battle = 0, $me = 0, $main = false) //FIXME 37 запросов! ТРИДЦАТЬ СЕМЬ! Чтобы отобразить предметы на персонаже.
|
||||||
{
|
{
|
||||||
global $rooms;
|
global $rooms;
|
||||||
$r = '';
|
$r = '';
|
||||||
|
2
inf.php
2
inf.php
@ -37,7 +37,7 @@ if (empty($user['id'])): ?>
|
|||||||
<table width=100%>
|
<table width=100%>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 250px; vertical-align: top;">
|
<td style="width: 250px; vertical-align: top;">
|
||||||
<?= showinf_pers($user['id'], 1);
|
<?= showinf_pers($user['id']);
|
||||||
|
|
||||||
if (!empty($user['married']))
|
if (!empty($user['married']))
|
||||||
echo '<br><a href="inf.php?' . $user['married'] . '" target=_blank><img src="i/married.gif" class="tooltip" title="В браке с ' . $user['married'] . '"></a>';
|
echo '<br><a href="inf.php?' . $user['married'] . '" target=_blank><img src="i/married.gif" class="tooltip" title="В браке с ' . $user['married'] . '"></a>';
|
||||||
|
Loading…
Reference in New Issue
Block a user