Файл: user/wall/mini_form.php
Строк: 19
<?php
/* DCMS S (Special)
* Версия файла 0.0.1
* Дата последнего редактирования 02.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 = user::get_user($posts['id_user']);
echo "<table class = ''><tr><td class = 'icon14'>";
avatar($anks['id'], '30');
echo "</td><td class = 'null'>";
echo "<a href = '/info.php?id=$anks[id]'><b>";
echo text::gradient("$anks[nick]", "$anks[ncolor]", "$anks[ncolor2]");
echo "</b></a> ";
echo text::toOutput($posts['msg']);
echo "<br /><small title = '" . date::time($posts['time']) . "' style = 'color: #ADB2BB;'>" . date::timek($posts['time']) . "</small>";
echo "</td></tr></table>";
}
if ($k_posts == 0) {
} else {
//echo "</div>";
}