Added IP address to flood filter

This commit is contained in:
Savetheinternet 2011-03-27 23:13:24 +11:00
parent 187b476aae
commit 3fa646868a

View File

@ -347,6 +347,9 @@
} elseif($condition == 'body') { } elseif($condition == 'body') {
if(preg_match($value, $post['body_nomarkup'])) if(preg_match($value, $post['body_nomarkup']))
continue; continue;
} elseif($condition == 'ip') {
if(preg_match($value, $_SERVER['REMOTE_ADDR']))
continue;
} elseif($condition == 'OP') { } elseif($condition == 'OP') {
// Am I OP? // Am I OP?
if($value == $OP) if($value == $OP)