This commit is contained in:
Roman Kelesidis 2023-11-28 22:52:40 +07:00
parent 5ee1dc6fe3
commit 2111734d7c
9 changed files with 12 additions and 12 deletions

View File

@ -133,7 +133,7 @@ class sql_db
$this->log_error();
if (DBG_LOG_TRACKER)
{
dbg_log("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . time());
dbg_log("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . TIMENOW);
}
}

View File

@ -475,7 +475,7 @@ function dbg_log ($str, $file)
{
if (!DBG_LOG_TRACKER && !DBG_LOG) return false;
$dir = (defined('IN_TRACKER') ? 'dbg_tr/' : 'dbg_bb/') . date('m-d_H') .'/';
return bb_log($str, $dir . clean_filename($file) . '_' . time());
return bb_log($str, $dir . clean_filename($file) . '_' . TIMENOW);
}
function log_get ($file = '', $prepend_str = false)

View File

@ -985,7 +985,7 @@ class attach_parent
$this->attach_filename = preg_replace('#([\xC2\xC3])([\x80-\xBF])#', 'chr(ord(\'$1\')<<6&0xC0|ord(\'$2\')&0x3F)', $this->attach_filename);
$this->attach_filename = rawurlencode($this->attach_filename);
$this->attach_filename = preg_replace("/(%[0-9A-F]{1,2})/i", '', $this->attach_filename);
$this->attach_filename = trim($this->attach_filename . time());
$this->attach_filename = trim($this->attach_filename . '_' . TIMENOW);
}
$this->attach_filename = str_replace(array('&amp;','&',' '), '_', $this->attach_filename);
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);

View File

@ -44,7 +44,7 @@ class cache_memcache extends cache_common
if (DBG_LOG)
{
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . TIMENOW);
}
die($con_error);

View File

@ -44,7 +44,7 @@ class cache_redis extends cache_common
if (DBG_LOG)
{
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . TIMENOW);
}
die($con_error);

View File

@ -157,7 +157,7 @@ class sqlite_common extends cache_common
if (DBG_LOG)
{
dbg_log($create_error, "{$this->engine}-CACHE-mkdir-FAIL_" . time());
dbg_log($create_error, "{$this->engine}-CACHE-mkdir-FAIL_" . TIMENOW);
}
die($create_error);
@ -183,7 +183,7 @@ class sqlite_common extends cache_common
if (DBG_LOG)
{
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . TIMENOW);
}
die($con_error);

View File

@ -76,7 +76,7 @@ class sql_db
$charset_error = "Could not set charset '{$this->cfg['charset']}'";
if (DBG_LOG)
{
dbg_log($charset_error, "{$this->cfg['charset']}-DB-charset-FAIL_" . time());
dbg_log($charset_error, "{$this->cfg['charset']}-DB-charset-FAIL_" . TIMENOW);
}
die($charset_error);
}
@ -105,7 +105,7 @@ class sql_db
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)
{
dbg_log($con_error, "{$this->cfg['dbhost']}-DB-connect-FAIL_" . time());
dbg_log($con_error, "{$this->cfg['dbhost']}-DB-connect-FAIL_" . TIMENOW);
}
die($con_error);
}
@ -132,7 +132,7 @@ class sql_db
$select_error = "Could not select database $db_name";
if (DBG_LOG)
{
dbg_log($select_error, "{$this->cfg['dbname']}-DB-select-FAIL_" . time());
dbg_log($select_error, "{$this->cfg['dbname']}-DB-select-FAIL_" . TIMENOW);
}
die($select_error);
}

View File

@ -43,7 +43,7 @@ class datastore_memcache extends datastore_common
if (DBG_LOG)
{
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . TIMENOW);
}
die($con_error);

View File

@ -43,7 +43,7 @@ class datastore_redis extends datastore_common
if (DBG_LOG)
{
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . TIMENOW);
}
die($con_error);