presents fix
This commit is contained in:
parent
1ce478e985
commit
674f946657
@ -1203,7 +1203,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
|||||||
$r .= "Клан: " . ClanImage($user['klan']) . "<br>";
|
$r .= "Клан: " . ClanImage($user['klan']) . "<br>";
|
||||||
} elseif ($user['klan']) {
|
} elseif ($user['klan']) {
|
||||||
$clann = db::c()->query('SELECT `name`, `glava` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
|
$clann = db::c()->query('SELECT `name`, `glava` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
|
||||||
if ($clann['glava'] == $user['id']) $r .= "👑 ";
|
if ($clann['glava'] == $user['id']) $r .= "<sup>👑</sup> ";
|
||||||
$r .= $clann['name'] ." - ". $user['status'] . "<br>";
|
$r .= $clann['name'] ." - ". $user['status'] . "<br>";
|
||||||
}
|
}
|
||||||
if ($user['admin'] == 1) $r .= "<b>Администратор</b><br>";
|
if ($user['admin'] == 1) $r .= "<b>Администратор</b><br>";
|
||||||
|
2
inf.php
2
inf.php
@ -10,7 +10,7 @@ $user = db::c()->query('SELECT `id`,`login`,`married`,`win`,borndate,`align`,`ad
|
|||||||
WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
||||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
||||||
|
|
||||||
$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `present`<>"?s" AND `owner` = ?i','',$user['id']);
|
$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE type = 200 AND `present`<>"?s" AND `owner` = ?i','',$user['id']);
|
||||||
|
|
||||||
if (empty($user['id'])): ?>
|
if (empty($user['id'])): ?>
|
||||||
<html>
|
<html>
|
||||||
|
Loading…
Reference in New Issue
Block a user