File size: 2.52Kb
<?php
ERROR_REPORTING(0);
/*
Project: PBNL Forum v2.3
Coded By: thani sheun
Facebook: http://facebook.com/thani.seun
Email: mail@nairawapers.com
2go: doubletins
Twitter: @supa_surfer
WebSite: http://nairawapers.com
*/
require("../init.php");
if(!isloggedin())
{ header("location: index.php"); }
else { $user=$_SESSION["user"]; }
echo"<title>$config->title » Prev Forum replies</title>";
echo"<div class='body_width'>";
include "../topnav.php";
echo"<div class='breadcrumb'></div>
<center>";
include "../ads.php";
fblike();
echo"</center>
<div style='margin-top: 5px;' class='grid3'>
</div>";
echo"<div class='grid3 middle'><div class='b_head'>Recent Forum Replies</div>"; {
$query2=mysql_query("SELECT * FROM b_topics ORDER BY lastpostdate DESC LIMIT 15");
$num=mysql_num_rows($query2);
if($num==0)
{ echo"<div id='site-alert'><li><b>No Recent posts:)</b></li></div>"; }
else {
echo"<div align='left'><br>";
while($info=mysql_fetch_array($query2))
{
$title=cleanvalues2($info["subject"]);
$id2=cleanvalues2($info["id"]);
$author=cleanvalues2($info["poster"]);
$aid=user_info($author, userID);
$date=cleanvalues2($info["date"]);
$lastposter=cleanvalues2($info["lastposter"]);
$forumid=cleanvalues2($info["forumid"]);
$bid=user_info($lastposter, userID);
$lastpostdate=cleanvalues2($info["lastpostdate"]);
$date=date("h:i D, d M Y", $date);
if(empty($lastposter))
if(empty($lastposter))
{
$lastposter="---";
$lastpostdate=" ";
}
else
{
$lastposter="<a href='../profile.php?uid=$bid'><font color='green'>$lastposter</font></a>";
$lastpostdate=@date('D, d M Y', $lastpostdate);
}
if($lv==0) { $rnk=''; }
elseif($lv==1) {
$rnk= '<img style="vertical-align:middle" src="/images/crown2.png" />'; }
elseif($lv==2) {
$rnk= '<img style="vertical-align:middle" src="/images/crown3.png" />'; }if(empty($img))
{ $img="<img src='http://wfs01.wapka.mobi/3363/3363626_ec10bb7ff9.gif'>";
} else { $img="<img src='http://wfs01.wapka.mobi/3363/3363626_ec10bb7ff9.gif'>";}
echo"<ul><li><font color='orchid'><div class='awa'><div class='Aaabody2'><b>$img<a href='../profile.php?uid=$uid'>$lastposter</a></b></div></div></font><div class='awa'><div class='Aaabody2'><font color='red'><strong> Posted</strong></font><br>@ <a href=../forum/showtopic.php?id=$id2>$title</a><br><div align='left'><font color='green'>[$date]</font></div></div></div>";
if($lv==2) { echo ""; }
echo "</li></ul>";
}
echo"</div>";
}
}
echo"<br><div class='link_button'><a href='index.php'>Go Back</div></a>";
include "../footer.php";
?>