include $prevFolder . "themes/" . $THEME . "/_header.php"; // Check Private Forum if ($websiteInfo['privateforum'] == 1 && !constant("LOGGED_IN")) { die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "login.php';</script>"); } $memberInfo = array(); $LOGGED_IN = false; if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) { $memberInfo = $member->get_info_filtered(); $LOGGED_IN = true; } $breadcrumbObj->setTitle("Forum"); $breadcrumbObj->addCrumb("Home", $MAIN_ROOT); $breadcrumbObj->addCrumb("Forum"); include $prevFolder . "include/breadcrumb.php"; $boardObj->showSearchForm(); echo "\t\n\t<table class='forumTable'>\n"; $result = $mysqli->query("SELECT forumcategory_id FROM " . $dbprefix . "forum_category ORDER BY ordernum DESC"); while ($row = $result->fetch_assoc()) { $arrForumCats[] = $row['forumcategory_id']; $categoryObj->select($row['forumcategory_id']); $catInfo = $categoryObj->get_info_filtered(); $arrBoards = $categoryObj->getAssociateIDs("AND subforum_id = '0' ORDER BY sortnum", true); $dispBoards = ""; foreach ($arrBoards as $boardID) { $boardObj->select($boardID); if ($boardObj->memberHasAccess($memberInfo)) { $boardInfo = $boardObj->get_info_filtered(); $arrForumTopics = $boardObj->getForumTopics(); $newTopicBG = ""; $dispNewTopicIMG = "";