mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
Issue #4657 - Add to rolling log.
This commit is contained in:
@@ -255,8 +255,23 @@ class userlogin
|
|||||||
if(!empty($pref['session_save_method']) && ($pref['session_save_method'] === 'db') && !empty($pref['disallowMultiLogin']) && !empty($user_id))
|
if(!empty($pref['session_save_method']) && ($pref['session_save_method'] === 'db') && !empty($pref['disallowMultiLogin']) && !empty($user_id))
|
||||||
{
|
{
|
||||||
// logout any existing user of this account.
|
// logout any existing user of this account.
|
||||||
$sql->delete('session', "session_user = ".$user_id);
|
$mLog = '';
|
||||||
$sql->delete('online', "online_user_id='".$user_id.".".$user_name."'");
|
if($sql->delete('session', "session_user = ".$user_id))
|
||||||
|
{
|
||||||
|
$mLog = 'Dropped existing user session: #' . $user_id. " ".$username;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($onlineIP = $sql->retrieve("online", "online_ip", "online_user_id='".$user_id.".".$user_name."'"))
|
||||||
|
{
|
||||||
|
$mLog .= ' ('. e107::getIpHandler()->ipDecode($onlineIP).')';
|
||||||
|
$sql->delete('online', "online_user_id='".$user_id.".".$user_name."'");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($mLog))
|
||||||
|
{
|
||||||
|
$this->logNote('LAN_ROLL_LOG_07', $mLog );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif(!empty($pref['track_online']) && !empty($pref['disallowMultiLogin']) && !empty($user_id))
|
elseif(!empty($pref['track_online']) && !empty($pref['disallowMultiLogin']) && !empty($user_id))
|
||||||
{
|
{
|
||||||
@@ -667,6 +682,7 @@ class userlogin
|
|||||||
// $text = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS_);
|
// $text = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS_);
|
||||||
|
|
||||||
$debug = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,4);
|
$debug = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,4);
|
||||||
|
$debug[] = $text;
|
||||||
|
|
||||||
// unset($debug[0]);
|
// unset($debug[0]);
|
||||||
$debug[0] = e_REQUEST_URI;
|
$debug[0] = e_REQUEST_URI;
|
||||||
|
Reference in New Issue
Block a user