' . functions::forum_new(1) . '
';
echo '' : '
';
if (!$search_t) {
$req_t = mysql_query("SELECT `id`,`text` FROM `forum` WHERE `id` = '" . $res['refid'] . "'");
$res_t = mysql_fetch_assoc($req_t);
echo '
' . $res_t['text'] . '';
} else {
$req_p = mysql_query("SELECT `text` FROM `forum` WHERE `refid` = '" . $res['id'] . "' ORDER BY `id` ASC LIMIT 1");
$res_p = mysql_fetch_assoc($req_p);
if ($count > 1) {
for ($s = 0; $s <= count($array); $s++) {
if (mb_strlen($array[$s]) >= 3) {
$res['text'] = ReplaceKeywords($array[$s], $res['text']);
}
}
} else {
$res['text'] = ReplaceKeywords($search, $res['text']);
}
echo '
' . $res['text'] . '';
}
echo '
' . $res['from'] . ' ';
echo '
(' . date("d.m.Y / H:i", $res['time'] + $set_user['sdvig'] * 3600) . ')';
$text = $search_t ? $res_p['text'] : $res['text'];
$text = functions::checkout(mb_substr($text, 0, 400), 2, 1);
$text = str_replace('qwertyzxcytrewq', '', $text);
$text = preg_replace('#\[c\](.*?)\[/c\]#si', '
\1
', $text);
if (!$search_t) {
if ($count > 1) {
for ($s = 0; $s <= count($array); $s++) {
if (mb_strlen($array[$s]) >= 3) {
$text = ReplaceKeywords($array[$s], $text);
}
}
} else {
$text = ReplaceKeywords($search, $text);
}
}
echo $text;
if (mb_strlen($res['text']) > 400)
echo '...
' . $lng_forum['read_all'] . ' >>';
echo '
' . $lng_forum['to_topic'] . ''
. ($search_t ? '' : ' |
' . $lng_forum['to_post'] . '');
echo '
';
++$i;
}
} else {
echo '';
}
echo '
' . $lng['total'] . ': ' . $total . '
';
if ($total > $kmess) {
// Навигация по страницам
echo '
' . functions::display_pagination('search.php?' . ($search_t ? 't=1&' : '') . 'search=' . rawurlencode($search) . '&', $start, $total, $kmess) . '
' .
'
';
}
} else {
/*
-----------------------------------------------------------------
Выводим сообщение об ошибке
-----------------------------------------------------------------
*/
if ($error)
echo functions::display_error($error);
/*
-----------------------------------------------------------------
Инструкции для поиска
-----------------------------------------------------------------
*/
echo '
' . $lng_forum['search_help'] . '
';
}
echo '
' . ($search ? '' . $lng['search_new'] . '
' : '') . '' . $lng['to_forum'] . '
';
require('../incfiles/end.php');
?>