Файл: user/wall/mini_form.php
Строк: 17
<?php
/* DCMS S (Special)
* Версия файла 0.0.1
* Дата последнего редактирования 25.11.2015
* Модифицировал densnet
*/
$walls = mysql_fetch_array(mysql_query("SELECT * FROM `wall` WHERE `id` = '$post[id]';"));
$k_posts = mysql_result(mysql_query("SELECT COUNT(*) FROM `wall_comments` WHERE `id_wall` = '$post[id]'"), 0);
$k_pages = k_page($k_posts, $set['p_str']);
$pages = page($k_pages);
$starts = $set['p_str'] * $pages - $set['p_str'];
if (IS_WEB) {
$qs = mysql_query("SELECT * FROM `wall_comments` WHERE `id_wall` = '$post[id]' ORDER BY `time` DESC LIMIT 5");
} else {
$qs = mysql_query("SELECT * FROM `wall_comments` WHERE `id_wall` = '$post[id]' ORDER BY `time` DESC LIMIT 3");
}
if ($k_posts == 0) {
} else {
echo "<div class = 'hr'></div>";
//echo "<div class = 'comm'>";
}
while ($posts = mysql_fetch_assoc($qs)) {
$anks = get_user($posts['id_user']);
echo "<ul class='media-list media-list-conversation'>";
echo "<li class='media'>";
echo "<a class='media-left' href='/info.php?id=$anks[id]'>";
avatars($anks['id'], '30');
echo "</a>";
echo "<div class='media-body'><div class='media-body-text'>";
echo "<b>" . user($anks['id']) . "</b> ";
echo toOutput($posts['msg']);
echo "</div><div class='media-footer'>";
echo "<small class='text-muted'>";
echo "<span data-toggle='tooltip' data-placement='right' title='" . date::time($posts['time']) . "' style='color:grey;'>" . date::times($posts['time']) . "</span> ";
echo "</small>";
echo "</div></div>";
echo "</li>";
echo "</ul>";
}
if ($k_posts == 0) {
} else {
//echo "</div>";
}