forked from leftypol/leftypol
Simple anti-spam mechanism
This commit is contained in:
parent
ea67272e87
commit
e2bef8c2f2
3 changed files with 24 additions and 1 deletions
6
post.php
6
post.php
|
@ -483,6 +483,12 @@ 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['securimage']) && $config['securimage']){
|
||||
|
||||
if(!isset($_POST['captcha'])){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue