} else { define('ARTCNT', 20); } if ($managemode) { if (isset($_GET["ftype"])) { $ftype = intval($_GET["ftype"]); if ($ftype != $dir_modes["NORMAL"] && $ftype != $dir_modes["DELETED"]) { $ftype = $dir_modes["NORMAL"]; } } else { $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);
$redirt_id = $articles[0]["ID"]; } bbs_brcaddread($brdarr["NAME"], $redirt_id); $url = "Location: " . "bbscon.php?bid=" . $brdnum . "&id=" . $redirt_id; if (defined("ENABLE_JSMATH") && $use_tex && $articles[0]["IS_TEX"]) { $url .= "&tex=yes"; } header($url); exit; } if (isset($_GET["ftype"])) { $ftype = intval($_GET["ftype"]); } else { $ftype = $dir_modes["NORMAL"]; } $dir_perm = bbs_is_permit_mode($ftype, 1); if (!$dir_perm) { html_error_quit("错误的模式"); } if ($ftype == $dir_modes["DELETED"] && !bbs_is_bm($brdnum, $usernum)) { html_error_quit("你不能看这个东西哟。"); } $total = bbs_countarticles($brdnum, $ftype); if ($total <= 0) { html_error_quit("错误的文章号,原文可能已经被删除"); } $articles = array(); if ($dir_perm == 1) { //sorted $articles = array(); $num = bbs_get_records_from_id($brdarr["NAME"], $id, $ftype, $articles);