Beispiel #1
0
        require_once HEADERF;
        //	e107::getMessage()->addWarning($retext);
        //	echo e107::getmessage()->render();
        echo $retext;
        require_once FOOTERF;
        exit;
    }
    if ($_GET['f'] != 'last') {
        $thread->init();
    }
}
e107::getScBatch('view', 'forum')->setScVar('thread', $thread);
$pm_installed = e107::isInstalled('pm');
//Only increment thread views if not being viewed by thread starter
if (USER && (USERID != $thread->threadInfo['thread_user'] || $thread->threadInfo['thread_total_replies'] > 0) || !$thread->noInc) {
    $forum->threadIncview($thread->threadInfo['thread_id']);
}
define('e_PAGETITLE', strip_tags($tp->toHTML($thread->threadInfo['thread_name'], true, 'no_hook, emotes_off')) . ' / ' . $tp->toHTML($thread->threadInfo['forum_name'], true, 'no_hook, emotes_off') . ' / ' . LAN_FORUM_1001);
$forum->modArray = $forum->forumGetMods($thread->threadInfo['forum_moderators']);
define('MODERATOR', USER && $forum->isModerator(USERID));
e107::getScBatch('view', 'forum')->setScVar('forum', $forum);
//var_dump(e107::getScBatch('forum', 'forum'));
if (MODERATOR && isset($_POST['mod'])) {
    require_once e_PLUGIN . "forum/forum_mod.php";
    $thread->message = forum_thread_moderate($_POST);
    $thread->threadInfo = $forum->threadGet($thread->threadId);
}
$num = $thread->page ? $thread->page - 1 : 0;
$postList = $forum->PostGet($thread->threadId, $num * $thread->perPage, $thread->perPage);
// SEO - meta description (auto)
if (count($postList)) {