Ещё баги. Убрал отображение дилерского знака.
This commit is contained in:
parent
7b126ea0fc
commit
8bcbb961e8
@ -2316,7 +2316,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
|
||||
|
||||
$r .= '<center>';
|
||||
if ($user['deal'] > 0) {
|
||||
$deal = '💲 ';
|
||||
$deal = '💰 ';
|
||||
}
|
||||
|
||||
$r .= "<a href=\"javascript: top.AddToPrivate('$user[login]', top.CtrlPress)\" target=\"refreshed\"><img src=\"/i/lock.gif\" width=\"20\" height=\"15\" /></a>$deal" . ($user['align'] > 0 ? "<img src=\"/i/align_" . $user['align'] . ".gif\" />" : "") . ($user['klan'] != '' ? '<img title="' . ClanImage($user['klan']) . '" src="i/klan/' . ClanImage($user['klan']) . '.gif" />' : "") . "<b>$user[login]</b> [";
|
||||
|
8
inf.php
8
inf.php
@ -4,13 +4,12 @@ include("config.php");
|
||||
include("functions.php");
|
||||
|
||||
$login = filter_input(INPUT_SERVER,'QUERY_STRING',FILTER_SANITIZE_SPECIAL_CHARS);
|
||||
//$user_login = filter_input(INPUT_GET,'login');
|
||||
$user = db::c()->query('SELECT `id`,`login`,`married`,`deal`,`win`,`medals`,borndate,`align`,`admin`,`realname`,`city`,`lozung`,`info`,`prof1`,`prof2`,`email`,`ip`,`exp`,`stats`,`money`,`room`,`doblest`
|
||||
$uid = isset($_SESSION['uid'])?$_SESSION['uid']:NULL;
|
||||
$user = db::c()->query('SELECT `id`,`login`,`married`,`win`,`medals`,borndate,`align`,`admin`,`realname`,`city`,`lozung`,`info`,`prof1`,`prof2`,`email`,`ip`,`exp`,`stats`,`money`,`room`,`doblest`
|
||||
FROM `users`
|
||||
WHERE `login` = "?s"', $login)->fetch_assoc();
|
||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $_SESSION['uid'])->fetch_assoc();
|
||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
||||
|
||||
//$_SERVER['QUERY_STRING'] = $user['id'];
|
||||
if (empty($user['id'])) {
|
||||
?>
|
||||
<html>
|
||||
@ -42,7 +41,6 @@ if (empty($user['id'])) {
|
||||
<?= showinf_pers($user['id'], 1);
|
||||
|
||||
if (!empty($user['married'])) echo '<a href="inf.php?login='.$user['married'].'" target=_blank><img src="i/married.gif" class="tooltip" title="В браке с '.$user['married'].'"></a>';
|
||||
if ($user['deal'] == 1) echo '💲';
|
||||
$medals = explode(";", $user['medals']);
|
||||
for ($i = 0; $i < count($medals); $i++) {
|
||||
switch ($medals[$i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user