Removes ability to delete own threads.
This commit is contained in:
parent
5ef52b3c71
commit
c04c9bcb6a
|
@ -1120,6 +1120,7 @@
|
||||||
$config['error']['toomanycites'] = _('Too many cites; post discarded.');
|
$config['error']['toomanycites'] = _('Too many cites; post discarded.');
|
||||||
$config['error']['toomanycross'] = _('Too many cross-board links; post discarded.');
|
$config['error']['toomanycross'] = _('Too many cross-board links; post discarded.');
|
||||||
$config['error']['nodelete'] = _('You didn\'t select anything to delete.');
|
$config['error']['nodelete'] = _('You didn\'t select anything to delete.');
|
||||||
|
$config['error']['nodeletethread'] = _('You are not allowed to delete threads.');
|
||||||
$config['error']['noreport'] = _('You didn\'t select anything to report.');
|
$config['error']['noreport'] = _('You didn\'t select anything to report.');
|
||||||
$config['error']['toomanyreports'] = _('You can\'t report that many posts at once.');
|
$config['error']['toomanyreports'] = _('You can\'t report that many posts at once.');
|
||||||
$config['error']['invalidpassword'] = _('Wrong password…');
|
$config['error']['invalidpassword'] = _('Wrong password…');
|
||||||
|
|
|
@ -111,6 +111,11 @@ $config['mod']['editpost'] = MOD;
|
||||||
// Raw HTML posting
|
// Raw HTML posting
|
||||||
$config['mod']['rawhtml'] = MOD;
|
$config['mod']['rawhtml'] = MOD;
|
||||||
|
|
||||||
|
$config['mod']['mod_board_log'] = MOD;
|
||||||
|
|
||||||
|
$config['allow_thread_deletion'] = false;
|
||||||
|
|
||||||
|
|
||||||
// Max attachments per post
|
// Max attachments per post
|
||||||
$config['max_images'] = 5;
|
$config['max_images'] = 5;
|
||||||
$config['image_reject_repost'] = false;
|
$config['image_reject_repost'] = false;
|
||||||
|
|
5
post.php
5
post.php
|
@ -230,6 +230,11 @@ function handle_delete(){
|
||||||
$thread = $thread_query->fetch(PDO::FETCH_ASSOC);
|
$thread = $thread_query->fetch(PDO::FETCH_ASSOC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($config['allow_thread_deletion']) && !$config['allow_thread_deletion'] && !$post['thread']) {
|
||||||
|
error($config['error']['nodeletethread']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password))
|
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password))
|
||||||
error($config['error']['invalidpassword']);
|
error($config['error']['invalidpassword']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue