-
Notifications
You must be signed in to change notification settings - Fork 1
/
bbsthreads.php
81 lines (78 loc) · 2.53 KB
/
bbsthreads.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
require("www2-funcs.php");
login_init();
assert_login();
if(isset($_GET["board"]))
$board = $_GET["board"];
else
html_error_quit("错误的参数");
$brdarr = array();
$bid = bbs_getboard($board, $brdarr);
if($bid == 0)
html_error_quit("错误的讨论区");
$board = $brdarr["NAME"];
$brd_encode = urlencode( $board );
if(isset($_GET["gid"]))
$gid = $_GET["gid"];
else
html_error_quit("错误的参数");
if(isset($_GET["start"]))
$start = $_GET["start"];
else
html_error_quit("错误的参数");
if(isset($_POST["operate"]))
{
$operate = $_POST["operate"];
if ($operate == 99)
html_error_quit("系统错误");
$ret = bbs_threads_bmfunc($bid, $gid, $start, $operate);
if($ret >= 0)
{
if($operate == 5)
{
$ann_path = bbs_getannpath($board);
if ($ann_path != FALSE) {
if (!strncmp($ann_path,"0Announce/",10))
$ann_path = substr($ann_path,9);
// 丝路功能问题多多 先不要用
//header("Location: bbsipath.php?annpath={$ann_path}");
header("Location: bbs0anbm.php?path={$ann_path}");
}
}
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>
<input type="radio" name="operate" value="2">M标记<br>
<input type="radio" name="operate" value="3">取消M标记<br>
<input type="radio" name="operate" value="4">删除拟删文章<br>
<input type="radio" name="operate" value="5">收录精华区<br>
<input type="radio" name="operate" value="12">放入暂存档<br>
<input type="radio" name="operate" value="13">放入暂存档(去掉引文)<br>
<input type="radio" name="operate" value="6">设定拟删标记<br>
<input type="radio" name="operate" value="7">取消拟删标记<br>
<input type="radio" name="operate" value="8">设定不可回复<br>
<input type="radio" name="operate" value="9">取消不可回复<br>
<input type="radio" name="operate" value="10">做合集(保留引文)<br>
<input type="radio" name="operate" value="11">做合集(去掉引文)<br>
</blockquote>
<div align="center"><input type="submit" value="确定"><br></div>
</div>
</fieldset>
</form><br>
<?php
page_footer();
?>