Example #1
0
}
$topicInfo = $boardObj->objTopic->get_info();
$boardObj->select($topicInfo['forumboard_id']);
$boardObj->objPost->select($topicInfo['forumpost_id']);
$boardInfo = $boardObj->get_info_filtered();
$postInfo = $boardObj->objPost->get_info_filtered();
$boardObj->objPost->select($topicInfo['lastpost_id']);
$lastPostInfo = $boardObj->objPost->get_info_filtered();
$EXTERNAL_JAVASCRIPT .= "<script type='text/javascript' src='" . $MAIN_ROOT . "js/ace/src-min-noconflict/ace.js' charset='utf-8'></script>";
define("RESIZE_FORUM_IMAGES", true);
include "forum_image_resize.php";
// Start Page
$PAGE_NAME = $postInfo['title'] . " - " . $boardInfo['name'] . " - ";
// Quick Reply
$quickReplyForm = new Form();
$btThemeObj->addHeadItem("richtext-js", $quickReplyForm->getRichtextboxJSFile());
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>");
}
$blnShowAttachments = false;
if (constant('LOGGED_IN') == true && $downloadCatObj->get_info("accesstype") == 1 || $downloadCatObj->get_info("accesstype") == 0) {
    $blnShowAttachments = true;
}
$memberInfo = array();
$LOGGED_IN = false;
$NUM_PER_PAGE = $websiteInfo['forum_postsperpage'];
if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    $LOGGED_IN = true;