1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

New events user-ban-flood and user-ban-failed-login

This commit is contained in:
Cameron
2015-02-09 20:11:16 -08:00
parent cbf69d46c7
commit db62f8bdb9
2 changed files with 7 additions and 6 deletions

View File

@@ -218,9 +218,10 @@ class e_online
if ($row['online_pagecount'] > $online_bancount)
{
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_banlist.php');
if (TRUE === e107::getIPHandler()->add_ban(2,str_replace('--HITS--',$row['online_pagecount'],BANLAN_78),$ip,0))
if (true === e107::getIPHandler()->add_ban(2,str_replace('--HITS--',$row['online_pagecount'],BANLAN_78),$ip,0))
{
e107::getEvent()->trigger('flood', $ip);
e107::getEvent()->trigger('flood', $ip); //BC
e107::getEvent()->trigger('user-ban-flood', $ip);
exit;
}
}