|
|
@ -189,8 +189,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//if(checkSpam()) |
|
|
|
// error($config['error']['spam']); |
|
|
|
if(checkSpam()) |
|
|
|
error($config['error']['spam']); |
|
|
|
|
|
|
|
if($config['robot_enable'] && $config['robot_mute']) { |
|
|
|
checkMute(); |
|
|
@ -318,9 +318,6 @@ |
|
|
|
if(strlen($post['subject']) > 100) error(sprintf($config['error']['toolong'], 'subject')); |
|
|
|
if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolong_body']); |
|
|
|
if($config['force_body_op'] && empty($post['body'])) error($config['error']['tooshort_body']); |
|
|
|
|
|
|
|
//if(!($config['force_body_op'] && !$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshort_body']); |
|
|
|
|
|
|
|
if(strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password')); |
|
|
|
|
|
|
|
wordfilters($post['body']); |
|
|
@ -331,9 +328,9 @@ |
|
|
|
markup($post['body']); |
|
|
|
|
|
|
|
// Check for a flood |
|
|
|
//if(!($mod && $mod['type'] >= $config['mod']['flood']) && checkFlood($post)) { |
|
|
|
// error($config['error']['flood']); |
|
|
|
//} |
|
|
|
if(!($mod && $mod['type'] >= $config['mod']['flood']) && checkFlood($post)) { |
|
|
|
error($config['error']['flood']); |
|
|
|
} |
|
|
|
|
|
|
|
// Custom anti-spam filters |
|
|
|
if(isset($config['flood_filters'])) { |
|
|
|