diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 23:13:24 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 23:13:24 +1100 |
| commit | 3fa646868a505983711489e8697c396080f185a2 (patch) | |
| tree | b84fd0a1ede0f3121c9588bfdd0d29b768f580d7 /post.php | |
| parent | 187b476aae28814d496903b9b46502045054487b (diff) | |
Added IP address to flood filter
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |
