Bug fixes for unique per run logging

This commit is contained in:
Clemens Schwaighofer
2017-03-17 14:50:58 +09:00
parent 61f1b92bad
commit f599033a38
2 changed files with 3 additions and 3 deletions

View File

@@ -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
{

View File

@@ -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