From 091216082aafb74b95ff4f79b3acc5e7184db404 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sat, 22 Dec 2012 18:16:09 +0100 Subject: fixed to actually work --- post.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index 16566b51..f21b6164 100644 --- a/post.php +++ b/post.php @@ -6,6 +6,7 @@ require 'inc/functions.php'; require 'inc/anti-bot.php'; +require 'inc/imgcaptcha.php'; // Fix for magic quotes if (get_magic_quotes_gpc()) { @@ -192,7 +193,12 @@ if (isset($_POST['delete'])) { error($config['error']['captcha']); } } - + if ($config['imgcaptcha']) { + if (!isset($_POST['imgcaptcha_verify']) || !isset($_POST['imgcaptcha_hash'])) + error($config['error']['bot']); + if (ic_verifyHash($_POST['imgcaptcha_hash'],$_POST['imgcaptcha_verify'])) + error($config['error']['captcha']); + } if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { require 'inc/mod.php'; if (!$mod) { -- cgit v1.3