Code smell
This commit is contained in:
parent
a394c61be0
commit
7de55af40f
8
inf.php
8
inf.php
@ -22,6 +22,7 @@ function private_access($uid)
|
||||
}
|
||||
|
||||
//$presents = db::c()->query('SELECT img, sender FROM `users_presents` WHERE expiration_date >= "?s" AND owner = ?i', date('Y-m-d'), $user->id);
|
||||
function getnumrows() {}
|
||||
$presents = [];
|
||||
|
||||
if (empty($user->id)): ?>
|
||||
@ -91,12 +92,11 @@ if (!empty($user->realname)) {
|
||||
# Секретный раздел
|
||||
# Если я любой паладин, и смотрю не админа, или я сам админ.
|
||||
if ((private_access($uid) === MODERATOR_ACCESS && !$user->admin) || private_access($uid) === ADMINISTRATOR_ACCESS) {
|
||||
//$ld = db::c()->query('SELECT * FROM `lichka` WHERE `pers` = ?i ORDER BY `id` ASC', $user['id']);
|
||||
$ld = db::c()->query();
|
||||
$ld = db::c()->query('SELECT * FROM users_logs WHERE user_id = ?i ORDER BY `id` ASC', $user->id);
|
||||
echo "<H4>Личное дело</H4>";
|
||||
while ($row_ld = $ld->fetch_assoc()) {
|
||||
$dat = date("d.m.Y H:i", $row_ld['date']);
|
||||
echo "<code>$dat {$row_ld['text']} </code><br />";
|
||||
$text = date("d.m.Y H:i ", $row_ld['date']) . $row_ld['text'];
|
||||
echo "<code>$text</code><br />";
|
||||
}
|
||||
|
||||
echo "<H4>Дополнительные сведения</H4>";
|
||||
|
Loading…
Reference in New Issue
Block a user