Участник+

Зарегистрирован: Jul 2001
Место проживания:
Публикаций: 63
Статус:  |
PHP:
function get_vbmessages() {
global $db,$templatecache, $purgalastvisit, $icon;
$template_section_title=$templatecache[$this->name."_vb_section_title"];
$template_section=$templatecache[$this->name."_vb_section"];
$template_entire=$templatecache[$this->name."_vb_list_entire"];
$threads=$db->query("SELECT threadid,title,postusername,replycount,lastpost
FROM thread ORDER BY lastpost DESC LIMIT ".$this->config[linenum]);
while($thread=$db->fetch_array($threads)) {
$id=$thread[threadid];
$title=$thread[title];
$short_title=substr($thread[title],0,$this->config[vbtitle_length]);
$author=$thread[postusername];
$replies=$thread[replycount];
$hotsign=iif($purgalastvisit-3600 < $thread[lastpost],$icon['new'],$icon['old']);
eval("\$section_news.=\"$template_entire\";");
}
eval("\$section_title=\"$template_section_title\";");
eval("\$section=\"$template_section\";");
return $section;
}
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|