mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r264
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@264 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
18e4ef9d5d
commit
abaf676bbb
1 changed files with 4 additions and 2 deletions
|
@ -106,8 +106,10 @@ if (isset($_POST['login']))
|
|||
{
|
||||
$login_err = CACHE('bb_login_err')->get('l_err_'. USER_IP);
|
||||
if($login_err > $bb_cfg['invalid_logins']) $need_captcha = true;
|
||||
if($login_err > 50) // забанить ип :)
|
||||
|
||||
if($login_err > 50)
|
||||
{
|
||||
// забанить ип :)
|
||||
}
|
||||
CACHE('bb_login_err')->set('l_err_'. USER_IP, ($login_err + 1), 3600);
|
||||
}
|
||||
else $need_captcha = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue