= $active){ $plaatje = 'images/on.gif'; } elseif ($topic['last_date'] < $active){ $plaatje = 'images/off.gif'; } } $topicnaam = htmlspecialchars(stripslashes($topic['naam'])); if(strlen ($topicnaam) > 50) { $topicnaam = substr ("$topicnaam", 0, 50); } if ($ingelogd == "1"){ $maxreplies = $lid['ppp']; } else { $maxreplies = "15"; } $page = $var['3']; $pagenav_table = ""; if (!isset ($page)) { $page = 1; } $countreplies_query = "SELECT id FROM dt_posts WHERE topic = '".$topic[id]."'" or die(mysql_error()); $countreplies_exec = mysql_query($countreplies_query); $countreplies = mysql_num_rows($countreplies_exec); $paginas = ceil($countreplies / $maxreplies); for ($i=0; $i < (ceil ($countreplies/$maxreplies)); $i++) { $gotopage = $i + 1; if ($gotopage > 1 ) { $pagenav_table = $pagenav_table . ""; } if ($page != $gotopage) { $pagenav_table = $pagenav_table . ""; } else { $pagenav_table = $pagenav_table . ""; } } $displayfrom = ($page - 1) * $maxreplies; $poll_sel = mysql_query("SELECT id, topic FROM dt_poll WHERE topic = ".$topic['id'].""); $bestaat_poll = mysql_num_rows($poll_sel); if ($bestaat_poll == "1") $poll = '[Poll] '; else $poll = ''; ?>
 Index / Actieve topics
   Topic  Starter Reacties  Laatste post Forum
'; ?>  -  '.htmlspecialchars(stripslashes($starter['nickname'])).''; ?>  '.$topic['lastpost2'].' / '.$topic['lastpost3']; ?>  
 Index / Actieve topics