mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Merge pull request #692 from Zankaria/simple-antispam
Prettier simple-antispam documentation
This commit is contained in:
commit
0c3159673d
@ -308,14 +308,12 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Enable simple anti-spam measure. Requires the end-user to answer a question before making a post.
|
// Enable simple anti-spam measure. Requires the end-user to answer a question before making a post.
|
||||||
//Works very well against uncustomized spam.
|
// Works very well against uncustomized spam. Answers are case-insensitive.
|
||||||
//Answers are case-insensitive.
|
// $config['simple_spam'] = array (
|
||||||
/*
|
// 'question' => 'What\'s 2+3?',
|
||||||
$config['simple_spam'] = array (
|
// 'answer' => '5'
|
||||||
'question' => 'What\'s 2+3?',
|
//);
|
||||||
'answer' => '5'
|
$config['simple_spam'] = false;
|
||||||
);
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Enable reCaptcha to make spam even harder. Rarely necessary.
|
// Enable reCaptcha to make spam even harder. Rarely necessary.
|
||||||
$config['recaptcha'] = false;
|
$config['recaptcha'] = false;
|
||||||
@ -1175,7 +1173,7 @@
|
|||||||
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
||||||
$config['error']['too_many_threads'] = _('The hourly thread limit has been reached. Please post in an existing thread.');
|
$config['error']['too_many_threads'] = _('The hourly thread limit has been reached. Please post in an existing thread.');
|
||||||
$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']['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
@ -563,7 +563,7 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
|
|
||||||
if (!$dropped_post) {
|
if (!$dropped_post) {
|
||||||
if (isset($config['simple_spam']) && $config['simple_spam'] && $post['op']) {
|
if ($config['simple_spam'] && $post['op']) {
|
||||||
if (!isset($_POST['simple_spam']) || strtolower($config['simple_spam']['answer']) != strtolower($_POST['simple_spam'])) {
|
if (!isset($_POST['simple_spam']) || strtolower($config['simple_spam']['answer']) != strtolower($_POST['simple_spam'])) {
|
||||||
error($config['error']['simple_spam']);
|
error($config['error']['simple_spam']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user