Originally posted by kabooms
Code:
else if($action=="last15topic") { addonline(getuid_sid($sid),"Viewing Latest Forum Topics","index.php?action=$action"); echo "<head>"; echo "<title>Latest Forum Topics</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; $sql = "SELECT id, name, crdate, authorid FROM ibwf_topics ibwf_topics ORDER BY lastpost DESC LIMIT 0 , 15"; echo "<p>"; echo "<small>"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(canaccess(getuid_sid($sid),getfid_tid($item[0]))) { $tun = getnick_uid($item[3]); echo "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$item[0]&go=last\">$tun:".htmlspecialchars($item[1])."</a><br/>"; }else{ echo "Private Post<br/>"; } } } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; }
Code:
echo "<a href=\"index.php?action=last15topic&sid=$sid\">Latest Forum Topics</a><br/>";
Leave a comment: