странно на локалке работает стоит версия опен 1.1
<?php
# Copyright © 2005 - 2008 SLAED
# Website: http://www.slaed.net
if (!defined("BLOCK_FILE")) {
Header("Location: ../index.php");
exit;}
global $prefix, $db;
#количество комментариев на страницу
$kol = 10;
#длина текста
$dlina = 50;
$result = $db->sql_query("SELECT a.id, a.cid, a.modul,a.date, a.name, a.comment, b.user_name FROM ".$prefix."_comment AS a
LEFT JOIN ".$prefix."_users AS b ON (a.uid=b.user_id) ORDER BY date DESC LIMIT $kol");
if ($db->sql_numrows($result) > 0) {
while (list($id, $cid, $com_modul,$date, $com_name, $com_text, $user_name) = $db->sql_fetchrow($result)) {
$com_name = ($user_name) ? "".user_info($user_name, 1)."" : (($com_name) ? $com_name : $confu['anonym']);
$content .= "<table cellspacing=\"0\" cellpadding=\"1\" border=\"0\"><tr><td>» $date<br><b>$com_name</b>: <a
href=\"".view_article($com_modul, $cid, $id)."\" title=\""._READMORE."\">".substr(text_filter(bb_decode($com_text,
$com_modul)),0,$dlina)."</a></td></tr></table><hr>";}}
?>