$board = $_GET["board"]; } else { html_error_quit("错误的讨论区"); } $brdarr = array(); $bid = bbs_getboard($board, $brdarr); if ($bid == 0) { html_error_quit("错误的讨论区"); } $usernum = $currentuser["index"]; if (!bbs_is_bm($bid, $usernum)) { html_error_quit("你不是版主"); } $board = $brdarr['NAME']; $brd_encode = urlencode($board); bbs_board_nav_header($brdarr, "自定版面封禁理由"); if (isset($_GET['act'])) { switch ($_GET['act']) { case 'set': if (!isset($_POST['setreason'])) { html_error_quit("错误的参数"); } $setreason = $_POST['setreason']; switch (bbs_setdenyreason($board, $setreason)) { case -1: html_error_quit("讨论区错误"); break; default: html_success_quit("自定义版面封禁理由保存成功<br/><br/>", array("<a href=bbsdoc.php?board=" . $board . ">返回版面</a>", "<a href=\"javascript:history.go(-1)\">继续修改</a>")); } break;
} else { html_error_quit('错误的文章ID'); } if (!bbs_normalboard($board)) { if (bbs_checkreadperm($currentuser["index"], $bid) == 0) { html_error_quit("错误的讨论区"); } } $ftype = $dir_modes["NORMAL"]; $articles = array(); $num = bbs_get_records_from_id($board, $id, $ftype, $articles); if ($num == 0) { html_error_quit("错误的文章号,原文可能已经被删除"); } $id = $articles[1]["ID"]; bbs_board_nav_header($brdarr, "文章推荐"); $confirmed = isset($_GET['do']) ? 1 : 0; switch (bbs_docommend($board, $id, $confirmed)) { case 0: if ($confirmed) { html_success_quit("推荐成功!", array("<a href='bbsdoc.php?board=" . $brd_encode . "'>返回 " . $brdarr['DESC'] . "</a>", "<a href='bbscon.php?bid=" . $bid . "&id=" . $id . "'>返回《" . htmlspecialchars($articles[1]["TITLE"]) . "》</a>")); } else { // show recommend form below } break; case -1: html_error_quit("对不起,您没有这篇文章的推荐权限"); break; case -2: html_error_quit("讨论区错误"); break;
switch ($total) { case -1: html_error_quit("系统错误"); case -2: html_error_quit("错误的讨论区"); case -3: html_error_quit("你不是版主"); case -4: html_error_quit("没有这个俱乐部"); } $count = count($userlist); $pagecount = intval($total / $pagesize); if ($total > $pagecount * $pagesize) { $pagecount++; } bbs_board_nav_header($brdarr, "俱乐部成员管理"); ?> <script type="text/javascript"> function clubDeleteUser(userid) { document.getElementById("clubop").value += "\r\n-" + userid; } function submitclub() { if(confirm("确定修改这些用户的俱乐部<?php echo $mode ? "写" : "读"; ?> 权限吗?")) { form1.btnsubmit.disabled = true; form1.btnsubmit.value = "正在操作,请等待";
html_error_quit("错误的讨论区"); } if (bbs_checkreadperm($currentuser["index"], $brdnum) == 0) { html_error_quit("您没有权限"); } $votearr = array(); $retnum = bbs_get_tmpls($board, $votearr); if ($retnum < 0) { $retnum = 0; } if (isset($_GET["id"])) { $restr = "&reid=" . $_GET["id"]; } else { $restr = ""; } bbs_board_nav_header($brdarr, "模板列表"); ?> <table class="main adj"> <caption>版面 <?php echo $board; ?> 共有 <?php echo $retnum; ?> 个模板</caption> <tr><th>序号</th><th>标题</th><th>类型</th><th>问题个数</th><th></th></tr> <?php for ($i = 0; $i < $retnum; $i++) { ?> <tr><td> <?php
if ($ret <= 0) { html_error_quit("开投票错误." . $ret); } else { html_success_quit("开投票成功<br/><a href='bbsdoc.php?board=" . $board . "'>返回本讨论区</a>"); } } $usernum = $currentuser["index"]; $brdarr = array(); $brdnum = bbs_getboard($board, $brdarr); if ($brdnum == 0) { html_error_quit("错误的讨论区"); } if (!bbs_is_bm($brdnum, $usernum)) { html_error_quit("你不是版主"); } bbs_board_nav_header($brdarr, "新开投票"); ?> <script type="text/javascript"> <!--// var maxitemnum=10; var defaultitem=3; function doGenerate(){ var oSelectType=document.getElementById("oType"); var type=oSelectType.value; var targetDiv=document.getElementById("oDiv"); var content=""; var i; if ( (type=="1") || (type=="2") || (type=="3") ){ content+="记录投票内容:<input id=\"trueFlag\" type=\"checkbox\" name=\"trueflag\" onclick=\"chkTrueFlag();\"><br>"; <?php if ($currentuser["userlevel"] & BBS_PERM_ADMIN || $currentuser["userlevel"] & BBS_PERM_OBOARDS) {
settype($reid, "integer"); $articles = array(); if ($reid > 0) { $num = bbs_get_records_from_id($board, $reid, $dir_modes["NORMAL"], $articles); if ($num == 0) { html_error_quit("错误的 Re 文编号"); } if ($articles[1]["FLAGS"][2] == 'y') { html_error_quit("该文不可回复!"); } if (bbs_is_member_read($brdarr) && no_member_read_perm($articles[1])) { html_error_quit("本版驻版可读,非本版驻版用户不能回复本版文章!"); } } $brd_encode = urlencode($board); bbs_board_nav_header($brdarr, $reid ? "回复文章" : "发表文章"); if (!$reid) { $titkey = array(); $count = bbs_gettitkey($board, $titkey, 1); for ($i = 0; $i < $count; $i++) { if ($i == 0) { $tk = $titkey[0]["desc"]; } else { $tk = $tk . "" . $titkey[$i]["desc"]; } } } ?> <script type="text/javascript" src="static/www2-addons.js"></script> <script type="text/javascript"><!-- var o = new replyForm('<?php
$brdnum = bbs_getboard($board, $brdarr); if ($brdnum == 0) { html_error_quit("´íÎóµÄÌÖÂÛÇø"); } if (bbs_checkreadperm($usernum, $brdnum) == 0) { html_error_quit("´íÎóµÄÌÖÂÛÇø"); } $top_file = bbs_get_vote_filename($brdarr["NAME"], "notes"); $isnormalboard = bbs_normalboard($board); if ($isnormalboard) { $mt = file_exists($top_file) ? @filemtime($top_file) : time(); if (cache_header("public", $mt, 1800)) { return; } } bbs_board_nav_header($brdarr, "±¸Íü¼"); $brd_encode = urlencode($brdarr["NAME"]); ?> <link rel="stylesheet" type="text/css" href="static/www2-ansi.css"/> <script type="text/javascript" src="static/www2-addons.js"></script> <div id="divNote" class="AnsiArticleBW"><div id="dn1"> <script type="text/javascript"><!-- <?php $s = false; if (file_exists($top_file)) { $s = bbs2_readfile($top_file); } if (!is_string($s)) { $s = 'prints("\\n\\n\\n´ËÌÖÂÛÇøÉÐÎÞ¡¸±¸Íü¼¡¹¡£\\n\\n\\n");'; } ?>
$is_tex = 0; } settype($reID, "integer"); $articles = array(); if ($reID > 0) { $num = bbs_get_records_from_id($boardName, $reID, $dir_modes["NORMAL"], $articles); if ($num == 0) { html_error_quit("错误的Re文编号!"); } if ($articles[1]["FLAGS"][2] == 'y') { html_error_quit("该文不可回复!"); } } //post articles $anony = isset($_POST["anony"]) ? intval($_POST["anony"]) : 0; bbs_board_nav_header($brdArr, $reID ? "回复文章" : "发表文章"); if ($tmpl & $reID > 0) { $filename = "boards/" . $boardName . "/" . $articles[1]["FILENAME"]; $contents .= bbs_get_quote($filename); } $title = rtrim($_POST["title"]); if (isset($_POST["titkey"])) { $tk = intval(@$_POST["titkey"]); $titkey = array(); $count = bbs_gettitkey($boardName, $titkey, 1); if ($tk > 0 && $tk <= $count) { $title = '[' . $titkey[$tk - 1]["desc"] . ']' . $title; } } $ret = bbs_postarticle($boardName, $title, $tmpl ? $contents : $_POST["text"], intval(@$_POST["signature"]), $reID, $outgo, $anony, @intval($_POST["mailback"]), $is_tex); switch ($ret) {
} else { html_success_quit("操作成功, {$ret} 条记录被修改。"); } } else { if ($ret == -1) { html_error_quit("错误的讨论区域"); } else { if ($ret == -2) { html_error_quit("没有权限"); } else { html_error_quit("系统内部错误"); } } } } bbs_board_nav_header($brdarr, "同主题操作"); ?> <form action="bbsthreads.php?board=<?php echo $board; ?> &gid=<?php echo $gid; ?> &start=<?php echo $start; ?> " method="post" class="medium"> <fieldset> <legend>同主题操作</legend> <div class="inputs">请选择要执行的操作:<br><blockquote> <input type="radio" name="operate" value="1">删除<br>
} else { html_error_quit("错误的讨论区"); } $brdarr = array(); $bid = bbs_getboard($board, $brdarr); if ($bid == 0) { html_error_quit("错误的讨论区"); } $usernum = $currentuser["index"]; if (!bbs_is_bm($bid, $usernum)) { html_error_quit("你不是版主"); } $board = $brdarr['NAME']; $brd_encode = urlencode($board); $maxreason = bbs_getdenyreason($board, $denyreasons, 1); bbs_board_nav_header($brdarr, "封禁名单"); if (isset($_GET['act'])) { switch ($_GET['act']) { case 'del': $userid = ltrim(trim($_GET['userid'])); if (!$userid) { html_error_quit("请输入解封用户的ID"); } switch (bbs_denydel($board, $userid)) { case -1: case -2: html_error_quit("讨论区错误"); break; case -3: html_error_quit($userid . " 不在封禁列表中"); break;
html_error_quit("参数错误3"); } $brdarr = array(); $brdnum = bbs_getboard($board, $brdarr); if ($brdnum == 0) { html_error_quit("错误的讨论区"); } if (bbs_checkreadperm($currentuser["index"], $brdnum) == 0) { html_error_quit("您没有权限"); } $votearr = array(); $retnum = bbs_get_tmpl_from_num($board, $num, $votearr); if ($retnum <= 0) { html_error_quit("系统错误"); } bbs_board_nav_header($brdarr, "模板详细显示"); ?> <h1>模板 (<?php echo $retnum; ?> ): <?php echo $votearr[0]["TITLE"]; ?> </h1> <div style="padding-top: 1em;">标题: <?php echo $votearr[0]["TITLE_TMPL"]; ?> </div> <table class="main adj"> <tr><th>问题序号</th><th>问题</th><th>回答长度</th></tr> <?php
if (bbs_checkpostperm($usernum, $brdnum) == 0) { html_error_quit("错误的讨论区或者您无权在此讨论区发表文章"); } if (bbs_is_readonly_board($brdarr)) { html_error_quit("不能在只读讨论区发表文章"); } if (isset($_GET["ftype"])) { if ($_GET["ftype"] == $dir_modes["ZHIDING"]) { $ftype = $dir_modes["ZHIDING"]; } else { $ftype = $dir_modes["NORMAL"]; } } else { $ftype = $dir_modes["NORMAL"]; } bbs_board_nav_header($brdarr, "修改文章"); if (isset($_GET['id'])) { $id = intval($_GET['id']); } else { html_error_quit("错误的文编号"); } $articles = array(); $num = bbs_get_records_from_id($brdarr["NAME"], $id, $ftype, $articles); if ($num == 0) { html_error_quit("错误的文编号"); } $ret = bbs_article_deny_modify($board, $id); if ($ret) { html_error_quit(bbs_error_get_desc($ret)); } $brd_encode = urlencode($brdarr["NAME"]);
if (!bbs_is_bm($brdnum, $usernum)) { html_error_quit("你不是版主"); } $top_file = "vote/" . $board . "/notes"; if (isset($_POST["text"])) { $fp = @fopen($top_file, "w"); if ($fp == FALSE) { html_error_quit("无法打开文件"); } else { $data = $_POST["text"]; fwrite($fp, str_replace("\r\n", "\n", $data)); fclose($fp); html_success_quit("修改备忘录成功!<br/><a href=\"bbsdoc.php?board=" . $board . "\">本讨论区</a>"); } } bbs_board_nav_header($brdarr, "备忘录编辑"); ?> <form method="post" action=<?php echo "\"bbsmnote.php?board=" . $board . "\""; ?> class="large"> <fieldset><legend>修改进版画面</legend> <textarea name="text" onkeydown='return textarea_okd(this, event);' wrap="physical" id="sfocus"> <?php echo @htmlspecialchars(file_get_contents($top_file)); ?> </textarea> </fieldset> <div class="oper"> <input type="submit" value="存盘" /> <input type="reset" value="复原" /> </div>
$brdarr = array(); $isnormalboard = bbs_safe_getboard($brdnum, "", $brdarr); if (is_null($isnormalboard)) { html_error_quit("错误的讨论区"); } $board = $brdarr["NAME"]; $usernum = $currentuser["index"]; $brd_encode = urlencode($board); if (bbs_checkpostperm($usernum, $brdnum) == 0) { html_error_quit("错误的讨论区或者您无权在此讨论区发表文章"); } if (bbs_is_readonly_board($brdarr)) { html_error_quit("不能在只读讨论区发表文章"); } $ftype = $dir_modes["NORMAL"]; bbs_board_nav_header($brdarr, "修改附件"); if (isset($_GET['id'])) { $id = intval($_GET['id']); } else { html_error_quit("错误的文编号"); } $articles = array(); $num = bbs_get_records_from_id($brdarr["NAME"], $id, $ftype, $articles); if ($num == 0) { html_error_quit("错误的文编号"); } @($action = $_GET["act"]); $msg = ""; $ret = false; if ($action == "delete") { @($act_attachnum = $_GET["attachnum"]);
$reid = intval($_GET["reid"]); $articles = array(); if ($reid > 0) { $anum = bbs_get_records_from_id($board, $reid, $dir_modes["NORMAL"], $articles); if ($anum == 0) { html_error_quit("错误的 Re 文编号"); } if ($articles[1]["FLAGS"][2] == 'y') { html_error_quit("该文不可回复!"); } } } else { $restr = ""; $reid = 0; } bbs_board_nav_header($brdarr, "模板发文"); if (isset($_GET["do"])) { $tmpfile = "tmp/" . $currentuser["userid"] . ".tmpl.tmp"; $title = bbs_make_tmpl_file($board, $num, @$_POST["text0"], @$_POST["text1"], @$_POST["text2"], @$_POST["text3"], @$_POST["text4"], @$_POST["text5"], @$_POST["text6"], @$_POST["text7"], @$_POST["text8"], @$_POST["text9"], @$_POST["text10"], @$_POST["text11"], @$_POST["text12"], @$_POST["text13"], @$_POST["text14"], @$_POST["text15"], @$_POST["text16"], @$_POST["text17"], @$_POST["text18"], @$_POST["text19"], @$_POST["text20"]); if ($title == "") { html_error_quit("请输入标题"); } ?> <h1>模板发文预览</h1> <div class="large"><div class="article"> 标题: <?php echo $title; ?> <br/><br/> <?php echo bbs_printansifile($tmpfile);
} if (isset($_GET["id"])) { $id = $_GET["id"]; } else { $id = $_POST["id"]; } $articles = array(); $num = bbs_get_records_from_id($brdarr["NAME"], $id, $dir_modes["NORMAL"], $articles); if ($num == 0) { html_error_quit("错误的文章号"); } if (bbs_is_member_read($brdarr) && no_member_read_perm($articles[1])) { html_error_quit("本版驻版可读,非本版驻版用户不能转寄本版文章!"); } $brd_encode = urlencode($board); bbs_board_nav_header($brdarr, "文章转寄"); if (!isset($_GET["do"])) { ?> <form action="bbsfwd.php?do" method="post" class="medium"/> <input type="hidden" name="board" value="<?php echo $brdarr["NAME"]; ?> "/> <input type="hidden" name="id" value="<?php echo $id; ?> "/> <fieldset> <legend>转寄文章:<?php echo $articles[1]["OWNER"]; ?>
html_error_quit("讨论区错误"); } $brdarr = array(); $brdnum = bbs_getboard($board, $brdarr); if ($brdnum == 0) { html_error_quit("错误的讨论区"); } if (bbs_checkreadperm($currentuser["index"], $brdnum) == 0) { html_error_quit("您没有权限"); } $votearr = array(); $retnum = bbs_get_votes($board, $votearr); if ($retnum < 0) { $retnum = 0; } bbs_board_nav_header($brdarr, "投票列表"); ?> <table class="main adj"> <caption>版面 <?php echo $board; ?> 共有 <?php echo $retnum; ?> 个投票</caption> <tr><th>序号</th><th>标题</th><th>类型</th><th>开启者</th><th>开启日期</th><th>投票天数</th></tr> <?php for ($i = 0; $i < $retnum; $i++) { ?> <tr><td> <?php