forked from leftypol/leftypol
Added IP address to flood filter
This commit is contained in:
parent
187b476aae
commit
3fa646868a
1 changed files with 3 additions and 0 deletions
3
post.php
3
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue