Update others.php

guestsectoupload not found in group data we have just usersectoupload for all groups.
This commit is contained in:
Hani Rouatbi
2022-08-28 17:40:41 +01:00
committed by GitHub
parent 0f21221dae
commit 59ce530215

View File

@@ -302,14 +302,14 @@ function user_is_flooding($user_id = '-1')
}
//if the value is zero (means that the function is disabled) then return false immediately
if (($user_id == '-1' && $config['guestsectoupload'] == 0) || $user_id != '-1' && $config['usersectoupload'] == 0)
if ($config['usersectoupload'] == 0)
{
return false;
}
//In my point of view I see 30 seconds is not bad rate to stop flooding ..
//even though this minimum rate sometime isn't enough to protect Kleeja from flooding attacks
$time = time() - ($user_id == '-1' ? $config['guestsectoupload'] : $config['usersectoupload']);
$time = time() - $config['usersectoupload'];
$query = [
'SELECT' => 'f.time',