From 1af85e650e384de134af0715b4f7c13a9025a371 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Feb 2011 17:07:22 +1100 Subject: [PATCH] Allow admins to bypass flood filters --- inc/config.php | 2 ++ post.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; diff --git a/post.php b/post.php index 8cf5d426..c932a997 100644 --- a/post.php +++ b/post.php @@ -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']); }