1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

More flood filter conditions

This commit is contained in:
Savetheinternet 2011-03-27 23:23:12 +11:00
parent d5bf81794b
commit 054fd68dc2

View File

@ -347,7 +347,16 @@
} 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') { } 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') {
if(preg_match($value, $_SERVER['REMOTE_ADDR'])) if(preg_match($value, $_SERVER['REMOTE_ADDR']))
continue; continue;
} elseif($condition == 'OP') { } elseif($condition == 'OP') {