////////////////////////////////////////////////////////////
// Вывод текста поста //
////////////////////////////////////////////////////////////
$text = $res['text'];
if ($set_forum['postcut']) {
// Если текст длинный, обрезаем и даем ссылку на полный вариант
switch ($set_forum['postcut']) {
case 2 :
$cut = 1000;
break;
case 3 :
$cut = 3000;
break;
default :
$cut = 500;
}
}
if ($set_forum['postcut'] && mb_strlen($text) > $cut) {
$text = mb_substr($text, 0, $cut);
$text = checkout($text, 1, 0);
$text = preg_replace('#\[c\](.*?)\[/c\]#si', '<div class="quote">\1</div>', $text);
echo $text . '...<br /><a href="index.php?act=post&id=' . $res['id'] . '">Читать все >></a>';
}
else {
// Или, обрабатываем тэги и выводим весь текст
$text = checkout($text, 1, 1);
if ($set_user['smileys'])
$text = smileys($text, $res['rights'] ? 1 : 0);
echo $text;
}Что убрать нужно?