forked from yunasc/tbdev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
staffmess.php
96 lines (90 loc) · 3.81 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
<?php
/*
// +--------------------------------------------------------------------------+
// | Project: TBDevYSE - TBDev Yuna Scatari Edition |
// +--------------------------------------------------------------------------+
// | This file is part of TBDevYSE. TBDevYSE is based on TBDev, |
// | originally by RedBeard of TorrentBits, extensively modified by |
// | Gartenzwerg. |
// | |
// | TBDevYSE is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | TBDevYSE is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with TBDevYSE; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +--------------------------------------------------------------------------+
// | Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/
require "include/bittorrent.php";
dbconn(false);
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
stderr($tracker_lang['error'], $tracker_lang['access_denied']);
stdhead("Îáùåå ñîîáùåíèå", false);
?>
<table class=main width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td class=embedded>
<div align=center>
<form method=post name=message action=takestaffmess.php>
<?
if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"])
{
?>
<input type=hidden name=returnto value=<?=$_GET["returnto"] ? htmlspecialchars_uni($_GET["returnto"]) : htmlspecialchars_uni($_SERVER["HTTP_REFERER"])?>>
<?
}
?>
<table cellspacing=0 cellpadding=5>
<tr><td class="colhead" colspan="2">Îáùåå ñîîáùåíèå âñåì ÷ëåíàì àäìèíèñòðàöèè è ïîëüçîâàòåëÿì</td></tr>
<tr>
<td>Êîìó îòïðàâëÿòü:<br />
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<?
$per_line = 4;
for ($class = UC_USER; $class <= UC_SYSOP; $class++) {
if ($class % $per_line == 0 && $class > 0)
echo '</tr><tr>';
?><td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="<?=$class;?>">
</td>
<td style="border: 0"><?=get_user_class_name($class);?></td><?
}
while ($class % $per_line != 0) {
$class++;
?><td style="border: 0"> </td><?
}
?></tr>
</table>
</td>
</tr>
<TD colspan="2">Òåìà:
<INPUT name="subject" type="text" size="70"></TD>
</TR>
<tr><td align="center">
<?textbbcode("message","msg",$body);?>
<!--<textarea name=msg cols=80 rows=15><?=$body?></textarea>-->
</td></tr>
<tr>
<td colspan=2><div align="center"><b>Îòïðàâèòåëü: </b>
<?=$CURUSER['username']?>
<input name="sender" type="radio" value="self" checked>
Ñèñòåìà
<input name="sender" type="radio" value="system">
</div></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Îòïðàâèòü" class=btn></td></tr>
</table>
<input type=hidden name=receiver value=<?=$receiver?>>
</form>
</div></td></tr></table>
<?
stdfoot();
?>