Убрана неиспользуемая фильтрация, теперь можно смотреть не только на себя.
This commit is contained in:
parent
092ebe8320
commit
cf2ab2b98d
5
inf.php
5
inf.php
@ -2,12 +2,13 @@
|
|||||||
session_start();
|
session_start();
|
||||||
include_once 'functions.php';
|
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;
|
$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`
|
//$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`
|
// FROM `users`
|
||||||
// WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
// WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
||||||
$user = new User($_SESSION['uid']);
|
$user = new User($login);
|
||||||
const MODERATOR_ACCESS = 1;
|
const MODERATOR_ACCESS = 1;
|
||||||
const ADMINISTRATOR_ACCESS = 2;
|
const ADMINISTRATOR_ACCESS = 2;
|
||||||
function private_access($uid)
|
function private_access($uid)
|
||||||
|
Loading…
Reference in New Issue
Block a user