Beispiel #1
0
    unset($id, $from);
}
if (!$forum->checkPerm($forumId, 'view')) {
    // header('Location:'.e107::getUrl()->create('forum/forum/main'));
    $url = e107::url('forum', 'index', 'full');
    if (E107_DEBUG_LEVEL > 0) {
        print_a($_REQUEST);
        print_a($_GET);
        echo __FILE__ . ' Line: ' . __LINE__;
        echo "   forumId: " . $forumId;
        exit;
    }
    e107::getRedirect()->go($url);
    exit;
}
$forumInfo = $forum->forumGet($forumId);
$threadsViewed = $forum->threadGetUserViewed();
if (!vartrue($FORUM_VIEW_START)) {
    if (file_exists(THEME . 'forum_viewforum_template.php')) {
        require_once THEME . 'forum_viewforum_template.php';
    } elseif (file_exists(THEME . 'forum_template.php')) {
        require_once THEME . 'forum_template.php';
    } else {
        require_once e_PLUGIN . 'forum/templates/forum_viewforum_template.php';
    }
}
if (is_array($FORUM_VIEWFORUM_TEMPLATE) && deftrue('BOOTSTRAP', false)) {
    $FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start'];
    $FORUM_VIEW_START = $FORUM_VIEWFORUM_TEMPLATE['header'];
    $FORUM_VIEW_FORUM = $FORUM_VIEWFORUM_TEMPLATE['item'];
    $FORUM_VIEW_FORUM_STICKY = $FORUM_VIEWFORUM_TEMPLATE['item-sticky'];