mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
5ee1dc6fe3
commit
2111734d7c
@ -133,7 +133,7 @@ class sql_db
|
|||||||
$this->log_error();
|
$this->log_error();
|
||||||
if (DBG_LOG_TRACKER)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ function dbg_log ($str, $file)
|
|||||||
{
|
{
|
||||||
if (!DBG_LOG_TRACKER && !DBG_LOG) return false;
|
if (!DBG_LOG_TRACKER && !DBG_LOG) return false;
|
||||||
$dir = (defined('IN_TRACKER') ? 'dbg_tr/' : 'dbg_bb/') . date('m-d_H') .'/';
|
$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)
|
function log_get ($file = '', $prepend_str = false)
|
||||||
|
@ -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 = 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 = rawurlencode($this->attach_filename);
|
||||||
$this->attach_filename = preg_replace("/(%[0-9A-F]{1,2})/i", '', $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('&','&',' '), '_', $this->attach_filename);
|
$this->attach_filename = str_replace(array('&','&',' '), '_', $this->attach_filename);
|
||||||
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);
|
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);
|
||||||
|
2
library/includes/cache/memcache.php
vendored
2
library/includes/cache/memcache.php
vendored
@ -44,7 +44,7 @@ class cache_memcache extends cache_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
|
2
library/includes/cache/redis.php
vendored
2
library/includes/cache/redis.php
vendored
@ -44,7 +44,7 @@ class cache_redis extends cache_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
|
4
library/includes/cache/sqlite.php
vendored
4
library/includes/cache/sqlite.php
vendored
@ -157,7 +157,7 @@ class sqlite_common extends cache_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($create_error);
|
||||||
@ -183,7 +183,7 @@ class sqlite_common extends cache_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
|
@ -76,7 +76,7 @@ class sql_db
|
|||||||
$charset_error = "Could not set charset '{$this->cfg['charset']}'";
|
$charset_error = "Could not set charset '{$this->cfg['charset']}'";
|
||||||
if (DBG_LOG)
|
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);
|
die($charset_error);
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class sql_db
|
|||||||
$con_error = "Could not connect to {$this->engine} server $server";
|
$con_error = "Could not connect to {$this->engine} server $server";
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ class sql_db
|
|||||||
$select_error = "Could not select database $db_name";
|
$select_error = "Could not select database $db_name";
|
||||||
if (DBG_LOG)
|
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);
|
die($select_error);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class datastore_memcache extends datastore_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
|
@ -43,7 +43,7 @@ class datastore_redis extends datastore_common
|
|||||||
|
|
||||||
if (DBG_LOG)
|
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);
|
die($con_error);
|
||||||
|
Loading…
Reference in New Issue
Block a user