@ -402,19 +402,17 @@ if (isset($_POST['delete'])) {
if (!$resp['success']) {
error($config['error']['captcha']);
}
// Same, but now with our custom captcha provider
if (($config['captcha']['enabled']) || (($post['op']) & & ($config['new_thread_capt'])) ) {
$resp = file_get_contents($config['captcha']['provider_check'] . "?" . http_build_query([
'mode' => 'check',
'text' => $_POST['captcha_text'],
'extra' => $config['captcha']['extra'],
'cookie' => $_POST['captcha_cookie']
]));
if ($resp !== '1') {
error($config['error']['captcha'] .
'< script > if ( actually_load_captcha !== undefined ) actually_load_captcha ( "'.$config['captcha']['provider_get'].'" , "'.$config['captcha']['extra'].'" ) ; < / script > ');
}
}
// Same, but now with our custom captcha provider
if (($config['captcha']['enabled']) || (($post['op']) & & ($config['new_thread_capt'])) ) {
$resp = file_get_contents($config['captcha']['provider_check'] . "?" . http_build_query([
'mode' => 'check',
'text' => $_POST['captcha_text'],
'extra' => $config['captcha']['extra'],
'cookie' => $_POST['captcha_cookie']
]));
if ($resp !== '1') {
error($config['error']['captcha'] .
'< script > if ( actually_load_captcha !== undefined ) actually_load_captcha ( "'.$config['captcha']['provider_get'].'" , "'.$config['captcha']['extra'].'" ) ; < / script > ');
}
}
}
@ -1222,9 +1220,9 @@ if (isset($_POST['delete'])) {
'id' => $id
));
}
skip_redirect:
if ($config['try_smarter'] & & $post['op'])
$build_pages = range(1, $config['max_pages']);
@ -1234,8 +1232,8 @@ if (isset($_POST['delete'])) {
event('post-after', $post);
buildIndex();
if (count($telegrams) > 0) {
if (count($telegrams) > 0) {
$ids = implode(', ', array_map(function($x) { return (int)$x['id']; }, $telegrams));
query("UPDATE ``telegrams`` SET ``seen`` = 1 WHERE ``id`` IN({$ids})") or error(db_error());
die(Element('page.html', array(
@ -1257,7 +1255,7 @@ if (isset($_POST['delete'])) {
rebuildThemes('post-thread', $board['uri']);
else
rebuildThemes('post', $board['uri']);
} elseif (isset($_POST['appeal'])) {
if (!isset($_POST['ban_id']))
error($config['error']['bot']);