More flood filter conditions
This commit is contained in:
parent
3fa646868a
commit
e7a422ff5c
9
post.php
9
post.php
@ -347,6 +347,15 @@
|
|||||||
} elseif($condition == 'body') {
|
} elseif($condition == 'body') {
|
||||||
if(preg_match($value, $post['body_nomarkup']))
|
if(preg_match($value, $post['body_nomarkup']))
|
||||||
continue;
|
continue;
|
||||||
|
} 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') {
|
} elseif($condition == 'ip') {
|
||||||
if(preg_match($value, $_SERVER['REMOTE_ADDR']))
|
if(preg_match($value, $_SERVER['REMOTE_ADDR']))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user