From d284b0d50dabef2627ba9e38291f07e736dd0721 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 18 Jan 2011 17:11:28 +1100 Subject: flood prevention --- post.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'post.php') diff --git a/post.php b/post.php index d2306ca1..66247f4f 100644 --- a/post.php +++ b/post.php @@ -143,6 +143,10 @@ markup($post['body']); + // Check for a flood + if(checkFlood($post)) + error(ERROR_FLOOD); + 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).'…'; -- cgit v1.3