Патч закрывающий баги
This commit is contained in:
parent
0716bc6b7f
commit
7b126ea0fc
17
inf.php
17
inf.php
@ -3,14 +3,14 @@ session_start();
|
||||
include("config.php");
|
||||
include("functions.php");
|
||||
|
||||
$user_login = filter_input(INPUT_GET,'login');
|
||||
|
||||
$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`
|
||||
FROM `users`
|
||||
WHERE `login` = "?s"', $user_login)->fetch_assoc();
|
||||
WHERE `login` = "?s"', $login)->fetch_assoc();
|
||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $_SESSION['uid'])->fetch_assoc();
|
||||
|
||||
$_SERVER['QUERY_STRING'] = $user['id'];
|
||||
//$_SERVER['QUERY_STRING'] = $user['id'];
|
||||
if (empty($user['id'])) {
|
||||
?>
|
||||
<html>
|
||||
@ -18,7 +18,7 @@ if (empty($user['id'])) {
|
||||
<meta charset=utf-8"/>
|
||||
<title>Ошибка</title></head>
|
||||
<body style="color: #666; background-color: #d5d5d5; text-align: center; font-family: Consolas,monospace;">
|
||||
Ошибка: персонаж<?= ($user_login ? " <em>" . $user_login . "</em>" : ""); ?> не найден...
|
||||
Ошибка: персонаж<?= ($login ? " <em>" . $login . "</em>" : ""); ?> не найден...
|
||||
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
||||
</body>
|
||||
</html>
|
||||
@ -43,6 +43,7 @@ if (empty($user['id'])) {
|
||||
|
||||
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]) {
|
||||
case "009":
|
||||
@ -56,8 +57,6 @@ if (empty($user['id'])) {
|
||||
if ($user['win'] >= 20000) echo '<img src="i/016.gif" title="20000 Побед!">';
|
||||
if ($user['win'] >= 50000) echo '<img src="i/015.gif" title="50000 Побед!">';
|
||||
if ($user['win'] >= 100000) echo '<img src="i/014.gif" title="100000 Побед!">';
|
||||
|
||||
$medals = explode(";", $user['medals']);
|
||||
?>
|
||||
|
||||
</TD>
|
||||
@ -65,8 +64,8 @@ if (empty($user['id'])) {
|
||||
<div style="margin: auto; width: 100px; text-align: center;">
|
||||
<img align="right" src="i/<?=star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2));?>.gif" width="100"/>
|
||||
<?php
|
||||
if ((int)$user['align'] == 1) echo "<img src='/i/inf_pal.gif' width=\"100\">";
|
||||
if ((int)$user['admin'] == 1) echo "<img src='/i/p21.gif' width=\"100\">";
|
||||
if ((int)$user['align'] == 1) echo "<img src='/i/znaki/inf_pal.png'>";
|
||||
if ((int)$user['admin'] == 1) echo "<img src='/i/znaki/ud.png'>";
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user