mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r265
Фикс кодировки login.php git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@265 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
abaf676bbb
commit
6cc840bc46
2 changed files with 5 additions and 5 deletions
|
@ -57,8 +57,8 @@ $bb_cfg['css_ver'] = 1;
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||
$bb_cfg['tp_release_state'] = 'R263';
|
||||
$bb_cfg['tp_release_date'] = '29-08-2011';
|
||||
$bb_cfg['tp_release_state'] = 'R265';
|
||||
$bb_cfg['tp_release_date'] = '30-08-2011';
|
||||
|
||||
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
||||
$bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут";
|
||||
|
|
|
@ -60,7 +60,7 @@ $mod_admin_login = (IS_AM && !$user->data['session_admin']);
|
|||
$login_username = ($mod_admin_login) ? $userdata['username'] : (string) @$_POST['login_username'];
|
||||
$login_password = (string) @$_POST['login_password'];
|
||||
|
||||
// Проверка на неверную комбинацию логин/пароль
|
||||
// Проверка на неверную комбинацию логин/пароль
|
||||
$need_captcha = false;
|
||||
if(!$mod_admin_login)
|
||||
{
|
||||
|
@ -94,7 +94,7 @@ if (isset($_POST['login']))
|
|||
if ($user->login($_POST, $mod_admin_login))
|
||||
{
|
||||
$redirect_url = (defined('FIRST_LOGON')) ? $bb_cfg['first_logon_redirect_url'] : $redirect_url;
|
||||
// Обнуление при введении правильно комбинации логин/пароль
|
||||
// Обнуление при введении правильно комбинации логин/пароль
|
||||
CACHE('bb_login_err')->set('l_err_'. USER_IP, 0, 3600);
|
||||
|
||||
redirect($redirect_url);
|
||||
|
@ -108,7 +108,7 @@ if (isset($_POST['login']))
|
|||
if($login_err > $bb_cfg['invalid_logins']) $need_captcha = true;
|
||||
if($login_err > 50)
|
||||
{
|
||||
// забанить ип :)
|
||||
// забанить ип :)
|
||||
}
|
||||
CACHE('bb_login_err')->set('l_err_'. USER_IP, ($login_err + 1), 3600);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue