-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstaffmess.php
168 lines (149 loc) · 9.4 KB
/
staffmess.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
global $CURUSER;
if (get_user_class() < UC_ADMINISTRATOR)
stderr("出错了!", "你没有相应的权限!");
stdhead("群发站内消息", false);
?>
<table class=main width=737 border=0 cellspacing=0 cellpadding=0>
<tr>
<td class=embedded>
<div align=center>
<h1>向所有管理组成员/所有用户群发站内信:</a></h1>
<form method=post action=takestaffmess.php>
<?php
if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"]) {
?>
<input type=hidden name=returnto
value="<?php echo htmlspecialchars($_GET["returnto"]) ? htmlspecialchars($_GET["returnto"]) : htmlspecialchars($_SERVER["HTTP_REFERER"]) ?>">
<?php
}
?>
<table cellspacing=0 cellpadding=5>
<?php
if ($_GET["sent"] == 1) {
?>
<tr>
<td colspan=2><font color=red><b>消息已发出.</b></font></td>
</tr>
<?php
}
?>
<tr>
<td><b>发送给:</b><br/>
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="0">
</td>
<td style="border: 0">Peasant</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="1">
</td>
<td style="border: 0">User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="2">
</td>
<td style="border: 0">Power User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="3">
</td>
<td style="border: 0">Elite User</td>
</tr>
<tr>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="4">
</td>
<td style="border: 0">Crazy User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="5">
</td>
<td style="border: 0">Insane User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="6">
</td>
<td style="border: 0">Veteran User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="7">
</td>
<td style="border: 0">Extreme User</td>
</tr>
<tr>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="8">
</td>
<td style="border: 0">Ultimate User</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="9">
</td>
<td style="border: 0">Nexus Master</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="10">
</td>
<td style="border: 0">贵宾</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="11">
</td>
<td style="border: 0">养老族</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="12">
</td>
<td style="border: 0">发布员</td>
</tr>
<tr>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="13">
</td>
<td style="border: 0">类管理员</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="14">
</td>
<td style="border: 0">管理员</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="15">
</td>
<td style="border: 0">维护开发员</td>
<td style="border: 0" width="20"><input type="checkbox" name="clases[]"
value="16">
</td>
<td style="border: 0">主管</td>
<td style="border: 0"> </td>
<td style="border: 0"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>主题: <input type=text name=subject size=75>
</tr>
</td>
<tr>
<td><textarea name=msg cols=80 rows=15><?php echo $body ?></textarea></td>
</tr>
<tr>
<td colspan=1>
<div align="center"><b>发送者: </b>
<input name="sender" type="radio" value="self"
checked><?php echo $CURUSER['username'] ?>
<input name="sender" type="radio" value="system">系统
</div>
</td>
</tr>
<tr>
<td colspan=1 align=center><input type=submit value="Send!" class=btn></td>
</tr>
</table>
<input type=hidden name=receiver value=<?php echo $receiver ?>>
</form>
</div>
</td>
</tr>
</table>
<br/>
注意:不要使用HTML(可以使用BB Code)
<!--NOTE: Do not user BB codes. (NO HTML)-->
<?php
stdfoot();