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.
| 1. / 2. / ...
<?php
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb');
echo 'Forum - Beiträge entfernen';
echo cs_html_roco(0);
echo cs_html_roco(1,'leftb');
if (empty($_POST['submit'])) {
echo 'Benutzern Beiträge entfernen';
echo cs_html_roco(0);
echo cs_html_table(0);
echo cs_html_br(1);
$users_data = cs_sql_select(__FILE__,'users','users_nick,users_id',0,'users_nick',0,0);
echo cs_html_form(1,'commentsadd','board','commentsdel');
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'leftc');
echo 'Benutzer';
echo cs_html_roco(2,'leftb');
echo cs_dropdown('users_id','users_nick',$users_data);
echo cs_html_roco(0);
echo cs_html_roco(1,'leftc');
echo 'Kommentare';
echo cs_html_roco(2,'leftb');
echo cs_html_input('comments','','text');
echo cs_html_roco(0);
echo cs_html_roco(1,'leftc');
echo 'Optionen';
echo cs_html_roco(2,'leftb');
echo cs_html_vote('submit','Entfernen','submit');
echo cs_html_vote('reset','Nochmal','reset');
echo cs_html_table(0);
echo cs_html_form(0);
} else {
$comments = (int) $_POST['comments'];
$users_id = (int) $_POST['users_id'];
$time = cs_time();
$query = 'DELETE FROM {pre}_comments WHERE users_id = ''.$users_id.'' AND comments_ip = '127.0.0.1'';
cs_sql_query(__FILE__,$query);
echo 'Erfolgreich entfernt. ';
echo cs_link('Erneut erhöhren','board','commentsdel');
echo cs_html_roco(0);
echo cs_html_table(0);
}
?> |