|
|
@ -322,7 +322,13 @@ if (isset($_POST['delete'])) { |
|
|
|
} |
|
|
|
|
|
|
|
if ($config['report_captcha']) { |
|
|
|
$ch = curl_init($config['domain'].'/'.$config['captcha']['provider_check'] . "?" . http_build_query([ |
|
|
|
if ($config['captcha']['local']) { |
|
|
|
require_once '.' . $config['captcha']['provider_check']; |
|
|
|
if (!captcha_check($_POST['captcha_cookie'], $config['captcha']['extra'], $_POST['captcha_text'])) { |
|
|
|
error($config['error']['captcha']); |
|
|
|
} |
|
|
|
} else { |
|
|
|
$ch = curl_init($config['domain'].$config['captcha']['provider_check'] . "?" . http_build_query([ |
|
|
|
'mode' => 'check', |
|
|
|
'text' => $_POST['captcha_text'], |
|
|
|
'extra' => $config['captcha']['extra'], |
|
|
@ -335,6 +341,7 @@ if (isset($_POST['delete'])) { |
|
|
|
error($config['error']['captcha']); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$reason = escape_markup_modifiers($_POST['reason']); |
|
|
|
markup($reason); |
|
|
@ -431,7 +438,13 @@ if (isset($_POST['delete'])) { |
|
|
|
} |
|
|
|
// Same, but now with our custom captcha provider |
|
|
|
if (($config['captcha']['enabled']) || (($post['op']) && ($config['new_thread_capt'])) ) { |
|
|
|
$ch = curl_init($config['domain'].'/'.$config['captcha']['provider_check'] . "?" . http_build_query([ |
|
|
|
if ($config['captcha']['local']) { |
|
|
|
require_once '.' . $config['captcha']['provider_check']; |
|
|
|
if (!captcha_check($_POST['captcha_cookie'], $config['captcha']['extra'], $_POST['captcha_text'])) { |
|
|
|
error($config['error']['captcha']); |
|
|
|
} |
|
|
|
} else { |
|
|
|
$ch = curl_init($config['domain'].$config['captcha']['provider_check'] . "?" . http_build_query([ |
|
|
|
'mode' => 'check', |
|
|
|
'text' => $_POST['captcha_text'], |
|
|
|
'extra' => $config['captcha']['extra'], |
|
|
@ -445,6 +458,7 @@ if (isset($_POST['delete'])) { |
|
|
|
'<script>if (actually_load_captcha !== undefined) actually_load_captcha("'.$config['captcha']['provider_get'].'", "'.$config['captcha']['extra'].'");</script>'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) || |
|
|
|
(!$post['op'] && $_POST['post'] == $config['button_reply']))) |
|
|
|