diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-17 17:07:22 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-17 17:07:22 +1100 |
| commit | f6d0bea5f77a96f6e04eb28fc7727ec9a615e16c (patch) | |
| tree | ab796e9b92baabe5443d51416a9dafcbeca247a0 | |
| parent | 1d20b669a86978f2f8183a69c53d4bc88b9f20a4 (diff) | |
Allow admins to bypass flood filters
| -rw-r--r-- | inc/config.php | 2 | ||||
| -rw-r--r-- | post.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 5297f538..f386ab2a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -250,6 +250,8 @@ $config['mod']['postinlocked'] = MOD; // Post bypass unoriginal content check $config['mod']['postunoriginal'] = ADMIN; + // Bypass flood check + $config['mod']['flood'] = ADMIN; // Raw HTML posting $config['mod']['rawhtml'] = MOD; @@ -228,7 +228,7 @@ markup($post['body']); // Check for a flood - if(checkFlood($post)) { + if(!($mod && $mod['type'] >= $config['mod']['flood']) && checkFlood($post)) { error($config['error']['flood']); } |
