Browse Source

better error

pull/107/head
Your Name 8 months ago
committed by Zankaria
parent
commit
fdaa4ebdd1
  1. 1
      inc/config.php
  2. 2
      post.php

1
inc/config.php

@ -1182,6 +1182,7 @@
$config['error']['nopost'] = _('You didn\'t make a post.');
$config['error']['flood'] = _('Flood detected; 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']['muted'] = _('Unoriginal content! You have been muted for %d seconds.');
$config['error']['youaremuted'] = _('You are muted! Expires in %d seconds.');

2
post.php

@ -485,7 +485,7 @@ function handle_post(){
if (isset($config['simple_spam']) && $post['op']) {
if(!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']){
error($config['error']['spam']);
error($config['error']['simple_spam']);
}
}

Loading…
Cancel
Save