Beispiel #1
0
    html_error_quit("错误的讨论区");
}
if (isset($_GET["page"])) {
    $page = $_GET["page"];
} else {
    $page = 0;
}
if (isset($_GET["mode"])) {
    $mode = $_GET["mode"];
} else {
    $mode = 0;
}
if ($mode != 0) {
    $mode = 1;
}
$clubmode = bbs_club_flag($board);
if ($clubmode == "1") {
    $mode = 0;
} else {
    if ($clubmode == "2") {
        $mode = 1;
    }
}
// here process the submit data
if (isset($_POST["clubop"])) {
    $clubop = $_POST["clubop"];
    $info = $_POST["info"];
    $clubops = explode("\n", $clubop);
    $numop = count($clubops);
    for ($i = 0; $i < $numop; $i++) {
        $ret = bbs_club_write($board, trim($clubops[$i]), $mode, $info);
Beispiel #2
0
        $ftype = $dir_modes["NORMAL"];
    }
} else {
    if (isset($_GET["ftype"])) {
        $ftype = intval($_GET["ftype"]);
        if (!bbs_is_permit_mode($ftype, 0)) {
            html_error_quit("错误的模式");
        }
    } else {
        $ftype = $dir_modes["NORMAL"];
    }
}
if ($ftype == $dir_modes["DELETED"] && !$managemode) {
    html_error_quit("你不能看这个东西哦。");
}
if (bbs_club_flag($board) > 0) {
    $isclub = 1;
} else {
    $isclub = 0;
}
bbs_set_onboard($brdnum, 1);
if ($ftype == $dir_modes["ORIGIN"]) {
    bbs_checkorigin($board);
} else {
    if ($ftype == $dir_modes["MARK"]) {
        bbs_checkmark($board);
    }
}
if (!$managemode && $isnormalboard && (isset($_GET["page"]) || $ftype)) {
    $dotdirname = bbs_get_board_index($board, $ftype);
    if (cache_header("public", @filemtime($dotdirname), $ftype == $dir_modes["NORMAL"] ? 10 : 300)) {