Beispiel #1
0
    exit;
}
if ($action == "next") {
    $next = $forum->thread_getnext($thread_id, $topic_from);
    if ($next) {
        header("location:" . e_SELF . "?{$next}");
        exit;
    } else {
        require_once HEADERF;
        $ns->tablerender('', LAN_405, array('forum_viewtopic', '405'));
        require_once FOOTERF;
        exit;
    }
}
if ($action == "prev") {
    $prev = $forum->thread_getprev($thread_id, $topic_from);
    if ($prev) {
        header("location:" . e_SELF . "?{$prev}");
        exit;
    } else {
        require_once HEADERF;
        $ns->tablerender('', LAN_404, array('forum_viewtopic', '404'));
        require_once FOOTERF;
        exit;
    }
}
if ($action == "report") {
    $thread_info = $forum->thread_get_postinfo($thread_id, TRUE);
    if (isset($_POST['report_thread'])) {
        $report_add = $tp->toDB($_POST['report_add']);
        if ($pref['reported_post_email']) {