better error
This commit is contained in:
parent
3dcde766c8
commit
3422929d7f
|
@ -1182,6 +1182,7 @@
|
||||||
$config['error']['nopost'] = _('You didn\'t make a post.');
|
$config['error']['nopost'] = _('You didn\'t make a post.');
|
||||||
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
||||||
$config['error']['spam'] = _('Your request looks automated; Post discarded.');
|
$config['error']['spam'] = _('Your request looks automated; Post discarded.');
|
||||||
|
$config['error']['simple_spam'] = _('You must answer the question to make a new thread. See the last field.');
|
||||||
$config['error']['unoriginal'] = _('Unoriginal content!');
|
$config['error']['unoriginal'] = _('Unoriginal content!');
|
||||||
$config['error']['muted'] = _('Unoriginal content! You have been muted for %d seconds.');
|
$config['error']['muted'] = _('Unoriginal content! You have been muted for %d seconds.');
|
||||||
$config['error']['youaremuted'] = _('You are muted! Expires in %d seconds.');
|
$config['error']['youaremuted'] = _('You are muted! Expires in %d seconds.');
|
||||||
|
|
2
post.php
2
post.php
|
@ -485,7 +485,7 @@ function handle_post(){
|
||||||
|
|
||||||
if (isset($config['simple_spam']) && $post['op']) {
|
if (isset($config['simple_spam']) && $post['op']) {
|
||||||
if(!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']){
|
if(!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']){
|
||||||
error($config['error']['spam']);
|
error($config['error']['simple_spam']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user