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