diff options
| author | asiekierka <asiekierka@gmail.com> | 2012-12-22 18:16:09 +0100 |
|---|---|---|
| committer | asiekierka <asiekierka@gmail.com> | 2012-12-22 18:16:09 +0100 |
| commit | 091216082aafb74b95ff4f79b3acc5e7184db404 (patch) | |
| tree | 60add7f6daf9b59c94e187458788f271da12c1a1 /post.php | |
| parent | 22654344714a85aebb7ecc8663595a1cf5dbdef6 (diff) | |
fixed to actually work
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) { |
