дебаг личного дела
This commit is contained in:
parent
efc5cfbadf
commit
4d0747f367
2
inf.php
2
inf.php
@ -63,7 +63,7 @@ include_once 'views/presents-list.php';
|
||||
|
||||
# Секретный раздел
|
||||
# Если я любой паладин, и смотрю не админа, или я сам админ.
|
||||
echo sprintf('<div class="debug">secret: %s <br><br> %s</div>', private_access($uid), var_dump(private_access($uid)));
|
||||
echo sprintf('<div class="debug">session_uid: %s <br><br> secret: %s <br><br> %s</div>', $_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);
|
||||
|
Loading…
Reference in New Issue
Block a user