mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
Update others.php
guestsectoupload not found in group data we have just usersectoupload for all groups.
This commit is contained in:
@@ -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 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//In my point of view I see 30 seconds is not bad rate to stop flooding ..
|
//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
|
//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 = [
|
$query = [
|
||||||
'SELECT' => 'f.time',
|
'SELECT' => 'f.time',
|
||||||
|
|||||||
Reference in New Issue
Block a user