forked from leftypol/leftypol
Simple anti-spam mechanism
This commit is contained in:
parent
b833e2743a
commit
56bbaf881f
2 changed files with 5 additions and 4 deletions
6
post.php
6
post.php
|
@ -483,9 +483,9 @@ function handle_post(){
|
|||
}
|
||||
}
|
||||
|
||||
if ($config['simple_spam'] && $post['op']) {
|
||||
if(!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam'])){
|
||||
$config['error']['spam'];
|
||||
if (isset($config['simple_spam']) && $post['op']) {
|
||||
if(!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']){
|
||||
error($config['error']['spam']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue