summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-27 23:13:24 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-27 23:13:24 +1100
commit3fa646868a505983711489e8697c396080f185a2 (patch)
treeb84fd0a1ede0f3121c9588bfdd0d29b768f580d7
parent187b476aae28814d496903b9b46502045054487b (diff)
Added IP address to flood filter
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index 590be24a..e303abf6 100644
--- a/post.php
+++ b/post.php
@@ -347,6 +347,9 @@
} elseif($condition == 'body') {
if(preg_match($value, $post['body_nomarkup']))
continue;
+ } elseif($condition == 'ip') {
+ if(preg_match($value, $_SERVER['REMOTE_ADDR']))
+ continue;
} elseif($condition == 'OP') {
// Am I OP?
if($value == $OP)