From 786773a2a8c80b173757636aa89d5b85eecd0e0e Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sun, 24 Sep 2023 14:17:18 -0400 Subject: [PATCH] remove print_err statements in post (not needed) --- inc/anti-bot.php | 2 +- post.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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))