if (!$member->hasAccess($consoleObj)) { exit; } } $boardObj = new ForumBoard($mysqli); if (!$boardObj->objTopic->select($_GET['topicID'])) { echo "\n\t\t<script type='text/javascript'>\n\t\t\twindow.location = '" . $MAIN_ROOT . "members'\n\t\t</script>\n\t"; exit; } $topicInfo = $boardObj->objTopic->get_info_filtered(); $boardObj->select($boardObj->objTopic->get_info("forumboard_id")); $boardInfo = $boardObj->get_info_filtered(); $forumCatObj = new Basic($mysqli, "forum_category", "forumcategory_id"); $boardObj->objPost->select($topicInfo['forumpost_id']); $postInfo = $boardObj->objPost->get_info_filtered(); $boardIDs = $boardObj->getAllBoards(); $catName = ""; $nonSelectableItems = array(); foreach ($boardIDs as $id) { $boardObj->select($id); $forumCatID = $boardObj->get_info("forumcategory_id"); $forumCatObj->select($forumCatID); if ($forumCatObj->get_info_filtered("name") != $catName) { $catName = $forumCatObj->get_info_filtered("name"); $catKey = "category_" . $forumCatID; $forumBoardOptions[$catKey] = "<b>" . $catName . "</b>"; $nonSelectableItems[] = $catKey; } if (($member->hasAccess($consoleObj) || $boardObj->memberIsMod($memberInfo['member_id'])) && $id != $topicInfo['forumboard_id']) { $spacing = str_repeat(" ", $boardObj->calcBoardDepth()); $forumBoardOptions[$id] = $spacing . $boardObj->get_info_filtered("name");