From 4d0747f367d9aa08d49392df75242aada3db5d4c Mon Sep 17 00:00:00 2001 From: lopar Date: Sun, 5 Jul 2020 20:40:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B5=D0=B1=D0=B0=D0=B3=20=D0=BB=D0=B8?= =?UTF-8?q?=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B4=D0=B5=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inf.php b/inf.php index acefebf..65a2683 100644 --- a/inf.php +++ b/inf.php @@ -63,7 +63,7 @@ include_once 'views/presents-list.php'; # Секретный раздел # Если я любой паладин, и смотрю не админа, или я сам админ. -echo sprintf('
secret: %s

%s
', private_access($uid), var_dump(private_access($uid))); +echo sprintf('
session_uid: %s

secret: %s

%s
', $_SESSION['uid'], private_access($uid), var_dump(private_access($uid))); if ((private_access($uid) === MODERATOR_ACCESS && !$user->admin) || private_access($uid) === ADMINISTRATOR_ACCESS) { $ld = db::c()->query('SELECT * FROM users_logs WHERE user_id = ?i ORDER BY `id` ASC', $user->id);