mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
parent
c1e995e4d5
commit
0442d7584e
@ -128,7 +128,7 @@ class sql_db
|
||||
|
||||
$connect_type = ($this->cfg['persist']) ? 'mysql_pconnect' : 'mysql_connect';
|
||||
|
||||
if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
|
||||
if (!$link = $connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
|
||||
{
|
||||
$this->log_error();
|
||||
}
|
||||
@ -163,7 +163,7 @@ class sql_db
|
||||
$this->cur_query = 'select db';
|
||||
$this->debug('start');
|
||||
|
||||
if (!@mysql_select_db($this->cfg['dbname'], $this->link))
|
||||
if (!mysql_select_db($this->cfg['dbname'], $this->link))
|
||||
{
|
||||
$this->log_error();
|
||||
error_exit("Could not select database '{$this->cfg['dbname']}'");
|
||||
|
@ -357,7 +357,7 @@ ini_set('error_log', LOG_DIR .'php_err.log'); // имя лог файла
|
||||
|
||||
// Check some variable
|
||||
// Magic quotes
|
||||
if (@get_magic_quotes_gpc()) die('Set magic_quotes off');
|
||||
if (get_magic_quotes_gpc()) die('Set magic_quotes off');
|
||||
// JSON
|
||||
if (!function_exists('json_encode')) die('Json_encode not installed');
|
||||
// Mbstring
|
||||
|
Loading…
Reference in New Issue
Block a user