A bunch of stuff.

This commit is contained in:
Savetheinternet 2011-01-19 00:41:43 +11:00
parent d284b0d50d
commit 62bd2ee348
5 changed files with 117 additions and 44 deletions

View file

@ -147,6 +147,9 @@
if(checkFlood($post))
error(ERROR_FLOOD);
if(!($mod && $mod['type'] >= MOD_POSTUNORIGINAL) && ROBOT_ENABLE && checkRobot($post['body']))
error(ERROR_UNORIGINAL);
if($post['has_file']) {
// Just trim the filename if it's too long
if(strlen($post['filename']) > 30) $post['filename'] = substr($post['filename'], 0, 27).'…';
@ -221,7 +224,6 @@
}
// Todo: Validate some more, remove messy code, allow more specific configuration
$id = post($post, $OP);
if($post['has_file'] && $post['zip']) {
@ -322,10 +324,13 @@
buildThread(($OP?$id:$post['thread']));
if(!$OP) {
if(!$OP && $post['email'] != 'sage') {
bumpThread($post['thread']);
}
if($OP)
clean();
buildIndex();
sql_close();