Файл: app/pages/blocked.php
Строк: 9
<?php
if ($db->query("SELECT `id` FROM `users_block` WHERE `id_profile` = '" . $user['id'] . "' AND `time_ban` > '" . time() . "'")->rowCount() == 0)
{
Core::go('/');
}
$show = 'ban';
$smarty->header('Аккаунт заблокирован!');
$query = $db->query("SELECT * FROM `users_block` WHERE `id_profile` = '" . $user['id'] . "' AND `time_ban` > '" . time() . "' ORDER BY `time` DESC");
while ($list = $query->fetch())
{
$posts[] = [
'image' => User::photo($list['id_user']),
'title' => User::login($list['id_user']) . ' ' . Lang::word('до') . ' ' . Core::time($list['time_ban']),
'post' => Filter::output($list['text']),
'time' => Core::time($list['time']),
];
}
$smarty->assign([
'post' => $posts
]);
$smarty->display('posts.tpl');
$smarty->footer();