示例#1
0
$templater->register('template_hook', $template_hook);
$templater->register('thread', $thread);
$templater->register('threadadmin_imod_menu_post', $threadadmin_imod_menu_post);
$templater->register('threadid', $threadid);
$templater->register('threadinfo', $threadinfo);
$templater->register('threadlist', $threadlist);
$templater->register('totalonline', $totalonline);
$templater->register('url', $url);
$templater->register('thread_url', $thread_url);
$templater->register('votechecked', $votechecked);
$templater->register('voteselected', $voteselected);
$templater->register('fbpublishcheckbox', $fbpublishcheckbox);
$templater->register('fblikebutton', $fblikebutton);
if ($show['quickedit'] and !$show['quickreply']) {
    $templater->register('editor_clientscript', vB_Template::create('editor_clientscript')->render());
    $templater->register('editor_js', vB_Ckeditor::getJsIncludes());
}
$templater->register('wrt', $wrt);
$templater->register('wrtlist', $wrtlist);
print_output($templater->render());
function goto_prevthread($threadid, $throwerror = true)
{
    global $vbulletin;
    $thread = verify_id('thread', $threadid, $throwerror, 1);
    $forumperms = fetch_permissions($thread['forumid']);
    // remove threads from users on the global ignore list if user is not a moderator
    if ($coventry = fetch_coventry('string') and !can_moderate($thread['forumid'])) {
        $globalignore = "AND postuserid NOT IN ({$coventry})";
    } else {
        $globalignore = '';
    }