From 187b476aae28814d496903b9b46502045054487b Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 27 Mar 2011 23:06:57 +1100 Subject: Flood filters --- post.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'post.php') diff --git a/post.php b/post.php index 18c97435..590be24a 100644 --- a/post.php +++ b/post.php @@ -332,6 +332,21 @@ // Matched filter continue; } + } elseif($condition == 'name') { + if(preg_match($value, $post['name'])) + continue; + } elseif($condition == 'trip') { + if(preg_match($value, $post['trip'])) + continue; + } elseif($condition == 'email') { + if(preg_match($value, $post['email'])) + continue; + } elseif($condition == 'subject') { + if(preg_match($value, $post['subject'])) + continue; + } elseif($condition == 'body') { + if(preg_match($value, $post['body_nomarkup'])) + continue; } elseif($condition == 'OP') { // Am I OP? if($value == $OP) -- cgit v1.3