дебаг личного дела
This commit is contained in:
parent
55a31999d5
commit
efc5cfbadf
3
inf.php
3
inf.php
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
session_start();
|
||||
//include_once 'functions.php';
|
||||
include_once 'config.php';
|
||||
include_once 'models/PresentsModel.php';
|
||||
|
||||
@ -64,6 +63,8 @@ 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)));
|
||||
|
||||
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);
|
||||
echo "<H4>Личное дело</H4>";
|
||||
|
Loading…
Reference in New Issue
Block a user