Recent posts"; echo "
";
// Time of post
$ptime = strftime('%A, %d. %b. %Y', $row['post_time']);
// Username
$puser = ($row['username']=="Anonymous")?$row['anon']:$row['username'];
// Post text
// Removing BBCode
$ppost = preg_replace('/\[[^\]]*\]/', '', $row['post_text']);
// Summarizing post
$ppost = summary($ppost);
// Removing some leftover formatting
$ppost = str_replace("", "", $ppost);
// TODO: Replace nebulo.ro in the following line to the URL of your forum
echo "".$ptime." ".$puser." ".$row['topic_title']." "." ".$ppost; echo " |