File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131require_once '../../lib/config.inc.php ' ;
3232require_once '../../lib/app.inc.php ' ;
3333
34- // Check if we have an active users ession and no login_as.
34+ // Check if we have an active users session and no login_as.
3535if ($ _SESSION ['s ' ]['user ' ]['active ' ] == 1 && @$ _POST ['login_as ' ] != 1 ) {
3636 header ('Location: /index.php ' );
3737 die ();
139139 $ sql = "SELECT * FROM `attempts_login` WHERE `ip`= ? AND `login_time` > (NOW() - INTERVAL 1 MINUTE) LIMIT 1 " ;
140140 $ alreadyfailed = $ app ->db ->queryOneRecord ($ sql , $ ip );
141141
142- //* too many failedlogins
142+ //* too many failed logins
143143 if ($ alreadyfailed ['times ' ] > 5 ) {
144144 $ error = $ app ->lng ('error_user_too_many_logins ' );
145145 } else {
264264
265265 $ app ->plugin ->raiseEvent ('login ' , $ username );
266266
267- //* Save successfull login message to var
267+ //* Save successful login message to var
268268 $ authlog = 'Successful login for user \'' . $ username .'\' from ' . $ _SERVER ['REMOTE_ADDR ' ] .' at ' . date ('Y-m-d H:i:s ' ) . ' with session ID ' .session_id ();
269269 $ authlog_handle = fopen ($ conf ['ispconfig_log_dir ' ].'/auth.log ' , 'a ' );
270270 fwrite ($ authlog_handle , $ authlog ."\n" );
316316 }
317317}
318318
319- // Maintenance mode - show message when people try to log in and also when people are forcedly logged off
319+ // Maintenance mode - show message when people try to log in and also when people are forcibly logged off
320320if ($ maintenance_mode_error != '' ) $ error = '<strong> ' .$ maintenance_mode_error .'</strong><br><br> ' .$ error ;
321321if ($ error != '' ){
322322 $ error = '<div class="box box_error"> ' .$ error .'</div> ' ;
You can’t perform that action at this time.
0 commit comments