"), array("forum.php4?id=$forumid")); $threaddata = mysql_query("SELECT id,threadname,author,replies,lastreply,status FROM ebb_threads WHERE boardid='$id' AND status>0 ORDER BY lastreply DESC LIMIT $start,20"); eval ("echo \"$tmpl_header\";"); eval ("echo \"$tmpl_threadheader\";"); while (list($tid,$topic,$author,$replies,$lastreply,$status) = mysql_fetch_row($threaddata)) { list($author_id) = mysql_fetch_row(mysql_query("SELECT id FROM ebb_user WHERE name='$author'")); if($lastreply > $ebb_lastvisited) { $new_or_not = "
"; } else { $new_or_not = "
"; } if ($status == 2) $new_or_not = "
"; $modified_string = HackDate($lastreply); if ($replies > 29) { $additional .= " ( "; for ($i = 0;$i < $replies+1;$i=$i+30) { $additional .= "".(($i / 30)+1)." "; } $additional .= ")"; } list($bla_id,$last_post_userid) = mysql_fetch_row(mysql_query("SELECT id,author FROM ebb_posts WHERE threadid='$tid' order by id desc")); list($a_name,$a_sign) = mysql_fetch_row(mysql_query("SELECT name,sign FROM ebb_user WHERE id='$last_post_userid'")); $last_post_by = "$a_sign $a_name"; $topic = codeparse($topic,0,0,0,0); eval ("echo \"$tmpl_threadrow\";"); unset($additional); } eval ("echo \"$tmpl_threadfooter\";"); eval ("echo \"$tmpl_footer\";"); } elseif($board_password) { eval ("echo \"$tmpl_header\";"); eval ("echo \"$tmpl_threadpw\";"); eval ("echo \"$tmpl_footer\";"); } ?>