mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
All data from conf file are stored into conf->file->xxx
Multicompany should be ok to logon with no breaking sessions when disabled
This commit is contained in:
@@ -139,8 +139,8 @@ class DoliDb
|
||||
|
||||
// If client connected with different charset than Dolibarr HTML output
|
||||
$clientmustbe='';
|
||||
if (eregi('UTF-8',$conf->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->character_set_client)) $clientmustbe='latin1';
|
||||
if (eregi('UTF-8',$conf->file->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->file->character_set_client)) $clientmustbe='latin1';
|
||||
if (mysql_client_encoding($this->db) != $clientmustbe)
|
||||
{
|
||||
$this->query("SET NAMES '".$clientmustbe."'", $this->db);
|
||||
@@ -165,8 +165,8 @@ class DoliDb
|
||||
{
|
||||
// If client connected with different charset than Dolibarr HTML output
|
||||
$clientmustbe='';
|
||||
if (eregi('UTF-8',$conf->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->character_set_client)) $clientmustbe='latin1';
|
||||
if (eregi('UTF-8',$conf->file->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->file->character_set_client)) $clientmustbe='latin1';
|
||||
if (mysql_client_encoding($this->db) != $clientmustbe)
|
||||
{
|
||||
$this->query("SET NAMES '".$clientmustbe."'", $this->db);
|
||||
|
||||
@@ -141,8 +141,8 @@ class DoliDb
|
||||
|
||||
// If client connected with different charset than Dolibarr HTML output
|
||||
$clientmustbe='';
|
||||
if (eregi('UTF-8',$conf->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->character_set_client)) $clientmustbe='latin1';
|
||||
if (eregi('UTF-8',$conf->file->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->file->character_set_client)) $clientmustbe='latin1';
|
||||
if (mysqli_client_encoding($this->db) != $clientmustbe)
|
||||
{
|
||||
$this->query("SET NAMES '".$clientmustbe."'", $this->db);
|
||||
@@ -167,8 +167,8 @@ class DoliDb
|
||||
{
|
||||
// If client connected with different charset than Dolibarr HTML output
|
||||
$clientmustbe='';
|
||||
if (eregi('UTF-8',$conf->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->character_set_client)) $clientmustbe='latin1';
|
||||
if (eregi('UTF-8',$conf->file->character_set_client)) $clientmustbe='utf8';
|
||||
if (eregi('ISO-8859-1',$conf->file->character_set_client)) $clientmustbe='latin1';
|
||||
if (mysqli_client_encoding($this->db) != $clientmustbe)
|
||||
{
|
||||
$this->query("SET NAMES '".$clientmustbe."'", $this->db);
|
||||
|
||||
@@ -72,7 +72,7 @@ class DoliDb
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
$this->forcecharset=$conf->character_set_client;
|
||||
$this->forcecharset=$conf->file->character_set_client;
|
||||
$this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||
$this->database_user=$user;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user