From cf2ab2b98d6f033cc6530ec3804ae4a0379ca67b Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Fri, 3 Jul 2020 19:19:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D0=B5?= =?UTF-8?q?=D0=BC=D0=B0=D1=8F=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F,=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=20=D1=81=D0=BC=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D0=B5=D1=82=D1=8C=20=D0=BD=D0=B5=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20=D0=BD=D0=B0=20=D1=81=D0=B5=D0=B1=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inf.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inf.php b/inf.php index 5054569..af8bf5d 100644 --- a/inf.php +++ b/inf.php @@ -2,12 +2,13 @@ session_start(); include_once 'functions.php'; -$login = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING')); +//$login = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING')); +$login = urldecode($_SERVER['QUERY_STRING']) ?? ''; $uid = $_SESSION['uid'] ?? null; //$user = db::c()->query('SELECT `id`,`login`,`married`,`win`,borndate,`align`,`admin`,`realname`,`info`,`prof1`,`prof2`,`email`,`ip`,`exp`,`stats`,`money`,`room`,`doblest` // FROM `users` // WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc(); -$user = new User($_SESSION['uid']); +$user = new User($login); const MODERATOR_ACCESS = 1; const ADMINISTRATOR_ACCESS = 2; function private_access($uid)