From f6d0bea5f77a96f6e04eb28fc7727ec9a615e16c 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']); }