diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2012-12-22 21:43:55 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2012-12-22 21:43:55 +0100 |
| commit | 49afb685c8e658c0f36b8171e176363538eb9419 (patch) | |
| tree | 1e51c6599bdc762f553f3352a928bf203c75df6b /post.php | |
| parent | 2451a0f29c08e23ff36ef113082c112224f7e576 (diff) | |
| parent | 67e9fb587220a677cc15c4b1f8efe2764b8b1955 (diff) | |
Merge branch 'imgcaptcha' of https://github.com/asiekierka/Tinyboard
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) { |
