remove print_err statements in post (not needed)
This commit is contained in:
parent
81831505e2
commit
786773a2a8
|
@ -35,7 +35,7 @@ function getStackTraceAsString() {
|
||||||
return $traceString;
|
return $traceString;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_err("\n\nSTART\n\n");
|
// print_err("\n\nSTART\n\n");
|
||||||
|
|
||||||
class AntiBot {
|
class AntiBot {
|
||||||
public $salt, $inputs = array(), $index = 0;
|
public $salt, $inputs = array(), $index = 0;
|
||||||
|
|
5
post.php
5
post.php
|
@ -416,15 +416,11 @@ function handle_report(){
|
||||||
function handle_post(){
|
function handle_post(){
|
||||||
global $config,$dropped_post,$board, $mod,$pdo;
|
global $config,$dropped_post,$board, $mod,$pdo;
|
||||||
|
|
||||||
print_err('handle_post BEGIN');
|
|
||||||
|
|
||||||
if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) {
|
if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) {
|
||||||
print_err('handle_post bot error 1');
|
print_err('handle_post bot error 1');
|
||||||
error($config['error']['bot']);
|
error($config['error']['bot']);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_err('handle_post NO SUCH bot error 1');
|
|
||||||
|
|
||||||
$post = array('board' => $_POST['board'], 'files' => array());
|
$post = array('board' => $_POST['board'], 'files' => array());
|
||||||
|
|
||||||
// Check if board exists
|
// Check if board exists
|
||||||
|
@ -533,7 +529,6 @@ function handle_post(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$post['mod'] && $config['spam']['enabled'] == true) {
|
if (!$post['mod'] && $config['spam']['enabled'] == true) {
|
||||||
print_err("ANTI SPAM IS ENABLED");
|
|
||||||
$post['antispam_hash'] = checkSpam(
|
$post['antispam_hash'] = checkSpam(
|
||||||
array($board['uri'],
|
array($board['uri'],
|
||||||
isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null))
|
isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null))
|
||||||
|
|
Loading…
Reference in New Issue