Beispiel #1
0
        exit;
    }
}
require_once e_PLUGIN . 'forum/forum_shortcodes.php';
if ($action == "track" && USER) {
    $forum->track($thread_id);
    header("location:" . e_SELF . "?{$thread_id}.{$topic_from}");
    exit;
}
if ($action == "untrack" && USER) {
    $forum->untrack($thread_id);
    header("location:" . e_SELF . "?{$thread_id}.{$topic_from}");
    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;