From 8bcbb961e8cf381eae94cc024cff95a642a9b07b Mon Sep 17 00:00:00 2001 From: lopar Date: Mon, 29 Jan 2018 18:54:23 +0200 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D0=B1=D0=B0=D0=B3=D0=B8.?= =?UTF-8?q?=20=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BE=D1=82=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=B8=D0=BB?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D0=BA=D0=BE=D0=B3=D0=BE=20=D0=B7=D0=BD=D0=B0?= =?UTF-8?q?=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 2 +- inf.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 8098729..54f0f85 100644 --- a/functions.php +++ b/functions.php @@ -2316,7 +2316,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM $r .= '
'; if ($user['deal'] > 0) { - $deal = '💲 '; + $deal = '💰 '; } $r .= "$deal" . ($user['align'] > 0 ? "" : "") . ($user['klan'] != '' ? '' : "") . "$user[login] ["; diff --git a/inf.php b/inf.php index 3ffe779..4c82688 100644 --- a/inf.php +++ b/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'])) { ?> @@ -42,7 +41,6 @@ if (empty($user['id'])) { '; - if ($user['deal'] == 1) echo '💲'; $medals = explode(";", $user['medals']); for ($i = 0; $i < count($medals); $i++) { switch ($medals[$i]) {