Beispiel #1
0
    } else {
        $forthr = $tp->parseTemplate($FORUMTHREADSTYLE, TRUE, $forum_shortcodes) . "\n";
    }
}
unset($loop_uid);
if ((check_class($forum_info['forum_postclass']) && check_class($forum_info['parent_postclass']) || MODERATOR) && $thread_info['head']['thread_active']) {
    if (!$forum_quickreply) {
        $QUICKREPLY = "<form action='" . e_PLUGIN . "forum/forum_post.php?rp." . e_QUERY . "' method='post'>\n<p>\n" . LAN_393 . ":<br /><textarea cols='60' rows='4' class='tbox' name='post' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'></textarea><br /><input type='submit' name='fpreview' value='" . LAN_394 . "' class='button' /> &nbsp;\n<input type='submit' name='reply' value='" . LAN_395 . "' class='button' />\n<input type='hidden' name='thread_id' value='{$thread_parent}' />\n</p>\n</form>";
    } else {
        $QUICKREPLY = $forum_quickreply;
    }
}
$forend = $tp->simpleParse($FORUMEND);
$forumstring = $forstr . $forthr . $forrep . $forend;
if ($thread_info['head']['thread_lastpost'] > USERLV && strpos(USERVIEWED, ".{$thread_info['head']['thread_id']}.") === FALSE) {
    $tst = $forum->thread_markasread($thread_info['head']['thread_id']);
}
if ($pref['forum_enclose']) {
    $ns->tablerender(LAN_01, $forumstring, array('forum_viewtopic', 'main'));
} else {
    echo $forumstring;
}
// end -------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "<script type=\"text/javascript\">\n\tfunction confirm_(mode, forum_id, thread_id, thread) {\n\tif (mode == 'thread') {\n\treturn confirm(\"" . $tp->toJS(LAN_409) . "\");\n\t} else {\n\treturn confirm(\"" . $tp->toJS(LAN_410) . " [ " . $tp->toJS(LAN_411) . "\" + thread + \" ]\");\n\t}\n\t}\n\t</script>";
require_once FOOTERF;
function showmodoptions()
{
    global $thread_id;
    global $thread_info;
    global $forum_info;
    global $post_info;