remove print_err statements in post (not needed)

This commit is contained in:
towards-a-new-leftypol 2023-09-24 14:17:18 -04:00
parent 81831505e2
commit 786773a2a8
2 changed files with 1 additions and 6 deletions

View File

@ -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;

View File

@ -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))