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)