".$locale['global_021']."
\n";
$result = dbquery("
SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
WHERE ".groupaccess('tf.forum_access')." AND tt.thread_hidden='0'
ORDER BY thread_lastpost DESC LIMIT 5");
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "- ".$itemsubject."
\n";
}
} else {
echo "- ".$locale['global_023']."
\n";
}
echo "
";
echo "\n";
?>