summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-27 23:23:12 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-27 23:23:12 +1100
commite7a422ff5c649c234b97cfd1632bde49c0f0ebdd (patch)
treef25ad7ba76f8d6e610b5a0bbb829e128f02bf552 /post.php
parent3fa646868a505983711489e8697c396080f185a2 (diff)
More flood filter conditions
Diffstat (limited to 'post.php')
-rw-r--r--post.php11
1 files changed, 10 insertions, 1 deletions
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') {