diff --git a/inc/anti-bot.php b/inc/anti-bot.php index 7625c4cc..ac61fe54 100644 --- a/inc/anti-bot.php +++ b/inc/anti-bot.php @@ -35,7 +35,7 @@ function getStackTraceAsString() { return $traceString; } -print_err("\n\nSTART\n\n"); +// print_err("\n\nSTART\n\n"); class AntiBot { public $salt, $inputs = array(), $index = 0; diff --git a/post.php b/post.php index 56e1d971..a560de6c 100644 --- a/post.php +++ b/post.php @@ -416,15 +416,11 @@ function handle_report(){ function handle_post(){ global $config,$dropped_post,$board, $mod,$pdo; - print_err('handle_post BEGIN'); - if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) { print_err('handle_post bot error 1'); error($config['error']['bot']); } - print_err('handle_post NO SUCH bot error 1'); - $post = array('board' => $_POST['board'], 'files' => array()); // Check if board exists @@ -533,7 +529,6 @@ function handle_post(){ } if (!$post['mod'] && $config['spam']['enabled'] == true) { - print_err("ANTI SPAM IS ENABLED"); $post['antispam_hash'] = checkSpam( array($board['uri'], isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null))