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'])) {