Simple anti-spam mechanism

This commit is contained in:
Your Name 2023-09-10 23:46:38 +02:00 committed by Zankaria
parent ea67272e87
commit e2bef8c2f2
3 changed files with 24 additions and 1 deletions

View file

@ -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'])){