$text = $res['text'];
if (mb_strlen($text) > 1000) {
$text = mb_substr($text, 0, 1000);
$text = functions::checkuot(text, 1, 1);
if ($set_user['smileys'])
$text = functions::smileys($text);
$text = '...
<a href="notebook.php?act=record&id=' . $res['id'] . '">Читать все >></a>';
} else {
$text = functions::checkuot(text, 1, 1);
if ($set_user['smileys'])
$text = functions::smileys($text);
}
echo $text;