From 054fd68dc2cf224a34f33033ade91c4346f21186 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 27 Mar 2011 23:23:12 +1100 Subject: [PATCH] More flood filter conditions --- post.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index e303abf6..18f4b902 100644 --- a/post.php +++ b/post.php @@ -347,7 +347,16 @@ } elseif($condition == 'body') { if(preg_match($value, $post['body_nomarkup'])) continue; - } elseif($condition == 'ip') { + } elseif($condition == 'extension') { + if($post['has_file'] && preg_match($value, $post['extension'])) + continue; + } elseif($condition == 'filename') { + if($post['has_file'] && preg_match($value, $post['filename'])) + continue; + } elseif($condition == 'has_file') { + if($value == $post['has_file']) + continue; + } elseif($condition == 'ip') { if(preg_match($value, $_SERVER['REMOTE_ADDR'])) continue; } elseif($condition == 'OP') {