query($DB, $sSQL); $rec=$q->getrow(); if($rec["folder"]==0){ header("Location: $forum_url/$list_page.$ext?f=$rec[id]$GetVars"); exit(); } } $title = $lForumList; if(file_exists("$include_path/header_$ForumConfigSuffix.php3")){ include "$include_path/header_$ForumConfigSuffix.php3"; } else{ include "$include_path/header.php3"; } if($f!=0){ $level=''; if($ForumParent!=0){ $level="f=$ForumParent"; } $table_width=$ForumTableWidth; $table_header_color=$ForumTableHeaderColor; $table_header_font_color=$ForumTableHeaderFontColor; $table_body_color_1=$ForumTableBodyColor1; $table_body_font_color_1=$ForumTableBodyFontColor1; $nav_color=$ForumNavColor; $nav_font_color=$ForumNavFontColor; ?>
valign="TOP" nowrap>
query($DB, $sSQL); $rec=$q->getrow(); } else { $rec = ""; } if(is_array($rec)){ while(is_array($rec)){ $empty=false; $name=$rec["name"]; $num=$rec["id"]; if(!$rec["folder"]){ $sSQL="select count(*) as posts from $rec[table_name] where approved='Y'"; $tq = new query($DB, $sSQL); if($tq->numrows()){ $trec=$tq->getrow(); $num_posts=$trec["posts"]; } else{ $num_posts='0'; } $sSQL="select max(datestamp) as max_date from $rec[table_name] where approved='Y'"; $tq->query($DB, $sSQL); $trec=$tq->getrow(); if(empty($trec["max_date"])){ $last_post_date=""; } else{ $last_post_date=date_format($trec["max_date"]); } } echo ""; /* Whoever added this did a bad job. $sSQL="SELECT id,name FROM ".$pho_main." WHERE parent=$rec[id] AND active=1"; $aq=new query($DB, $sSQL); $aq->query($DB, $sSQL); while ($anchor=$aq->getrow()) { echo " "; echo ""; echo $anchor["name"]; echo ", "; } */ echo ""; } else{ echo " $name"; echo ""; } echo "\n"; $rec=$q->getrow(); } ?>
> 
"; echo "
"; if($rec["folder"]){ echo " $name
  $lForumFolder
  $lNumPosts: $num_posts    $lLastPostDate: $last_post_date
"; echo "
 "; echo $rec["description"]; echo "
>