forked from leftypol/leftypol
fixed to actually work
This commit is contained in:
parent
2265434471
commit
091216082a
3 changed files with 28 additions and 14 deletions
8
post.php
8
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue