File size: 518B
<?php
require_once"db.php";
$psts = mysql_query("SELECT * FROM `theme` ORDER BY `time` DESC LIMIT 3");
while($pst = mysql_fetch_array($psts)){
if ($pst['posts'] > '10'){
$filek = $pst['posts']-1;
$startq = floor($filek/$config_forumpost)*$config_forumpost;
echo "<a href='forum/index.php?act=posts&start=$startq&id=".$pst['id']."'>".$pst['name']."</a> \n";
}else{echo "<a href='forum/index.php?act=posts&id=".$pst['id']."'>".$pst['name']."</a> \n";}
echo " (".date_fixed($pst['time']).")<br>\n";}
?>