// Neueste Beiträge zeigen?
function overview_do_newestposts() {
global $mybb, $db, $templates, $theme, $lang, $trow, $unviewwhere;
if($mybb->settings['overview_newest_posts'] == "yes") {
// Hintergrund festlegen
$trow = overview_trowcolor($trow);
// Daten für neueste Themen aus Datenbank auslesen
$query6 = $db->query ("SELECT subject,username,uid,pid,tid FROM ".TABLE_PREFIX."posts WHERE visible='1' $unviewwhere ORDER BY pid DESC LIMIT 0,".$mybb->settings['overview_max']."");
// Daten ausgeben
while ($newest_posts = $db->fetch_array($query6)) {
if($mybb->settings['overview_show_re'] == "no") {
$newest_posts['subject'] = str_replace("RE: ", "", $newest_posts['subject']);
}
$subject_long = htmlentities($newest_posts['subject']);
$pid = $newest_posts['pid'];
$tid = $newest_posts['tid'];
$uid = $newest_posts['uid'];
$subject = htmlentities(overview_limitsubject($newest_posts['subject'], $mybb->settings['overview_subjects_lenght']));
$username = overview_usernamestyle_db($uid, htmlentities($newest_posts['username']));
eval("\$newposts_row .= \"".$templates->get("index_overview_column_newposts_row")."\";");
}
eval("\$column_newposts = \"".$templates->get("index_overview_column_newposts")."\";");
}
return $column_newposts;
}