Bug fixes for unique per run logging
This commit is contained in:
@@ -617,8 +617,8 @@
|
||||
if ($GLOBALS['LOG_FILE_UNIQUE_ID'])
|
||||
$this->log_file_unique_id = $GLOBALS['LOG_FILE_UNIQUE_ID'];
|
||||
if (!$this->log_file_unique_id)
|
||||
$GLOBALS['LOG_FILE_UNIQUE_ID'] = $this->log_file_unique_id = substr(hash('sha1', uniqid(mt_rand(), true)), 0, 8);
|
||||
$rpl_string = !$this->log_print_file_date ? '' : '_'.date('Y-m-d').'_U_'.$this->log_file_unique_id; // add 8 char unique string
|
||||
$GLOBALS['LOG_FILE_UNIQUE_ID'] = $this->log_file_unique_id = date('Y-m-d_His').'_U_'.substr(hash('sha1', uniqid(mt_rand(), true)), 0, 8);
|
||||
$rpl_string = '_'.$this->log_file_unique_id; // add 8 char unique string
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1015,7 +1015,7 @@ EOM;
|
||||
}
|
||||
$q .= "'".session_id()."', ";
|
||||
$q .= "'".$this->db_escape_string($this->action)."', '".$this->db_escape_string($this->username)."', NULL, '".$this->db_escape_string($this->login_error)."', NULL, NULL, '".$this->db_escape_string($this->permission_okay)."', NULL)";
|
||||
$this->db_exec($q);
|
||||
$this->db_exec($q, 'NULL');
|
||||
}
|
||||
|
||||
// METHOD: login_check_edit_access_id
|
||||
|
||||
Reference in New Issue
Block a user