diff --git a/inf.php b/inf.php index 7358d18..3ffe779 100644 --- a/inf.php +++ b/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'])) { ?> @@ -18,7 +18,7 @@ if (empty($user['id'])) { Ошибка - Ошибка: персонаж" . $user_login . "" : ""); ?> не найден... + Ошибка: персонаж" . $login . "" : ""); ?> не найден...

←назад

@@ -43,6 +43,7 @@ if (empty($user['id'])) { if (!empty($user['married'])) echo ''; 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 ''; if ($user['win'] >= 50000) echo ''; if ($user['win'] >= 100000) echo ''; - - $medals = explode(";", $user['medals']); ?> @@ -65,8 +64,8 @@ if (empty($user['id'])) {
"; - if ((int)$user['admin'] == 1) echo ""; + if ((int)$user['align'] == 1) echo ""; + if ((int)$user['admin'] == 1) echo ""; ?>