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:
@@ -84,7 +84,7 @@ $barcodelist=array();
|
||||
clearstatcache();
|
||||
|
||||
|
||||
foreach ($conf->dol_document_root as $dirroot)
|
||||
foreach ($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
$dir = $dirroot . "/includes/modules/barcode/";
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ function Activate($value,$withdeps=1)
|
||||
$file = $modName . ".class.php";
|
||||
|
||||
// Loop on each directory
|
||||
foreach ($conf->dol_document_root as $dol_document_root)
|
||||
foreach ($conf->file->dol_document_root as $dol_document_root)
|
||||
{
|
||||
$found=@include_once($dol_document_root."/includes/modules/".$file);
|
||||
if ($found) break;
|
||||
@@ -144,7 +144,7 @@ function UnActivate($value,$requiredby=1)
|
||||
$file = $modName . ".class.php";
|
||||
|
||||
// Loop on each directory
|
||||
foreach ($conf->dol_document_root as $dol_document_root)
|
||||
foreach ($conf->file->dol_document_root as $dol_document_root)
|
||||
{
|
||||
$found=@include_once($dol_document_root."/includes/modules/".$file);
|
||||
if ($found) break;
|
||||
@@ -198,7 +198,7 @@ $categ = array();
|
||||
$dirmod = array();
|
||||
$i = 0; // is a sequencer of modules found
|
||||
$j = 0; // j is module number. Automatically affeted if module number not defined.
|
||||
foreach ($conf->dol_document_root as $dirroot)
|
||||
foreach ($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
$dir = $dirroot . "/includes/modules/";
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ $db->begin();
|
||||
|
||||
// Charge les modules soumis a permissions
|
||||
$modules = array();
|
||||
foreach ($conf->dol_document_root as $dirroot)
|
||||
foreach ($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
$dir = $dirroot . "/includes/modules/";
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ if ($_GET["action"] == 'add')
|
||||
$result=0;
|
||||
|
||||
$var=true;
|
||||
foreach ($conf->dol_document_root as $dirmod)
|
||||
foreach ($conf->file->dol_document_root as $dirmod)
|
||||
{
|
||||
$dir=$dirmod."/includes/modules/mailings/";
|
||||
|
||||
@@ -209,7 +209,7 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
|
||||
clearstatcache();
|
||||
|
||||
$var=true;
|
||||
foreach ($conf->dol_document_root as $dirroot)
|
||||
foreach ($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
$dir=$dirroot."/includes/modules/mailings/";
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ class Conf
|
||||
/**
|
||||
* \brief Load setup values into conf object
|
||||
* \param $db Handler d'acces base
|
||||
* \param $entity Id of company
|
||||
* \return int < 0 if KO, >= 0 if OK
|
||||
*/
|
||||
function setValues($db)
|
||||
|
||||
@@ -132,8 +132,8 @@ class box_external_rss extends ModeleBoxes {
|
||||
if (is_numeric($date)) $date=dol_print_date($date,"dayhour");
|
||||
|
||||
$isutf8 = utf8_check($title);
|
||||
if (! $isutf8 && $conf->character_set_client == 'UTF-8') $title=utf8_encode($title);
|
||||
elseif ($isutf8 && $conf->character_set_client == 'ISO-8859-1') $title=utf8_decode($title);
|
||||
if (! $isutf8 && $conf->file->character_set_client == 'UTF-8') $title=utf8_encode($title);
|
||||
elseif ($isutf8 && $conf->file->character_set_client == 'ISO-8859-1') $title=utf8_decode($title);
|
||||
|
||||
$title=ereg_replace("([[:alnum:]])\?([[:alnum:]])","\\1'\\2",$title); // G<>re probl<62>me des apostrophes mal cod<6F>e/d<>cod<6F>e par utf8
|
||||
$title=ereg_replace("^\s+","",$title); // Supprime espaces de d<>but
|
||||
|
||||
@@ -471,7 +471,7 @@ class DolibarrModules
|
||||
include_once(DOL_DOCUMENT_ROOT ."/lib/admin.lib.php");
|
||||
|
||||
$ok = 1;
|
||||
foreach($conf->dol_document_root as $dirroot)
|
||||
foreach($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
if ($ok)
|
||||
{
|
||||
|
||||
@@ -154,7 +154,7 @@ if ($_POST["action"] == "set")
|
||||
|
||||
//print "<tr><td>Creation de la table $name/td>";
|
||||
$requestnb++;
|
||||
if ($conf->character_set_client == "UTF-8")
|
||||
if ($conf->file->character_set_client == "UTF-8")
|
||||
{
|
||||
$buffer=utf8_encode($buffer);
|
||||
}
|
||||
@@ -266,7 +266,7 @@ if ($_POST["action"] == "set")
|
||||
{
|
||||
//print "<tr><td>Creation des cles et index de la table $name: '$buffer'</td>";
|
||||
$requestnb++;
|
||||
if ($conf->character_set_client == "UTF-8")
|
||||
if ($conf->file->character_set_client == "UTF-8")
|
||||
{
|
||||
$buffer=utf8_encode($buffer);
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_m
|
||||
define('MAIN_DB_PREFIX',(isset($dolibarr_main_db_prefix)?$dolibarr_main_db_prefix:''));
|
||||
|
||||
define('DOL_DATA_ROOT',(isset($dolibarr_main_data_root)?$dolibarr_main_data_root:''));
|
||||
if (empty($conf->character_set_client)) $conf->character_set_client="UTF-8";
|
||||
if (empty($conf->file->character_set_client)) $conf->file->character_set_client="UTF-8";
|
||||
if (empty($conf->db->dolibarr_main_db_collation)) $conf->db->dolibarr_main_db_collation='latin1_swedish_ci';
|
||||
if (empty($conf->db->user)) $conf->db->user='';
|
||||
|
||||
@@ -212,7 +212,7 @@ function conf($dolibarr_main_document_root)
|
||||
$conf->db->pass = trim($dolibarr_main_db_pass);
|
||||
|
||||
if (empty($character_set_client)) $character_set_client="UTF-8";
|
||||
$conf->character_set_client=strtoupper($character_set_client);
|
||||
$conf->file->character_set_client=strtoupper($character_set_client);
|
||||
if (empty($dolibarr_main_db_charset)) $dolibarr_main_db_charset='latin1';
|
||||
$conf->db->character_set=$dolibarr_main_db_charset;
|
||||
if (empty($dolibarr_main_db_collation)) $dolibarr_main_db_collation='latin1_swedish_ci';
|
||||
@@ -248,12 +248,12 @@ function pHeader($soutitre,$next,$action='set')
|
||||
$langs->load("admin");
|
||||
|
||||
// On force contenu dans format sortie
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
|
||||
print '<html>'."\n";
|
||||
print '<head>'."\n";
|
||||
print '<meta http-equiv="content-type" content="text/html; charset='.$conf->character_set_client.'">'."\n";
|
||||
print '<meta http-equiv="content-type" content="text/html; charset='.$conf->file->character_set_client.'">'."\n";
|
||||
print '<link rel="stylesheet" type="text/css" href="./default.css">'."\n";
|
||||
print '<title>'.$langs->trans("DolibarrSetup").'</title>'."\n";
|
||||
print '</head>'."\n";
|
||||
|
||||
@@ -78,7 +78,7 @@ class CMailFile
|
||||
// If ending method not defined
|
||||
if (empty($conf->global->MAIN_MAIL_SENDMODE)) $conf->global->MAIN_MAIL_SENDMODE='mail';
|
||||
|
||||
dol_syslog("CMailFile::CMailfile: MAIN_MAIL_SENDMODE=".$conf->global->MAIN_MAIL_SENDMODE." charset=".$conf->character_set_client." from=$from, to=$to, addr_cc=$addr_cc, addr_bcc=$addr_bcc, errors_to=$errors_to", LOG_DEBUG);
|
||||
dol_syslog("CMailFile::CMailfile: MAIN_MAIL_SENDMODE=".$conf->global->MAIN_MAIL_SENDMODE." charset=".$conf->file->character_set_client." from=$from, to=$to, addr_cc=$addr_cc, addr_bcc=$addr_bcc, errors_to=$errors_to", LOG_DEBUG);
|
||||
dol_syslog("CMailFile::CMailfile: subject=$subject, deliveryreceipt=$deliveryreceipt, msgishtml=$msgishtml", LOG_DEBUG);
|
||||
|
||||
// Detect if message is HTML (use fast method)
|
||||
@@ -162,7 +162,7 @@ class CMailFile
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/smtps/SMTPs.php");
|
||||
$smtps = new SMTPs();
|
||||
$smtps->setCharSet($conf->character_set_client);
|
||||
$smtps->setCharSet($conf->file->character_set_client);
|
||||
$smtps->setSubject($subject);
|
||||
$smtps->setTO($to);
|
||||
$smtps->setFrom($from);
|
||||
@@ -419,12 +419,12 @@ class CMailFile
|
||||
|
||||
if ($this->msgishtml)
|
||||
{
|
||||
if (! $this->atleastonefile) $out.= "Content-Type: text/html; charset=".$conf->character_set_client.$this->eol;
|
||||
if (! $this->atleastonefile) $out.= "Content-Type: text/html; charset=".$conf->file->character_set_client.$this->eol;
|
||||
$out.= "Content-Transfer-Encoding: 8bit".$this->eol;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (! $this->atleastonefile) $out.= "Content-Type: text/plain; charset=".$conf->character_set_client.$this->eol;
|
||||
if (! $this->atleastonefile) $out.= "Content-Type: text/plain; charset=".$conf->file->character_set_client.$this->eol;
|
||||
$out.= "Content-Transfer-Encoding: 8bit".$this->eol;
|
||||
}
|
||||
|
||||
@@ -476,11 +476,11 @@ class CMailFile
|
||||
$out.= "--" . $this->mime_boundary . $this->eol;
|
||||
if ($this->msgishtml)
|
||||
{
|
||||
$out.= "Content-Type: text/html; charset=".$conf->character_set_client.$this->eol;
|
||||
$out.= "Content-Type: text/html; charset=".$conf->file->character_set_client.$this->eol;
|
||||
}
|
||||
else
|
||||
{
|
||||
$out.= "Content-Type: text/plain; charset=".$conf->character_set_client.$this->eol;
|
||||
$out.= "Content-Type: text/plain; charset=".$conf->file->character_set_client.$this->eol;
|
||||
}
|
||||
$out.= $this->eol;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1109,8 +1109,8 @@ class Ldap
|
||||
function convToOutputCharset($str,$pagecodefrom='UTF-8')
|
||||
{
|
||||
global $conf;
|
||||
if ($pagecodefrom == 'ISO-8859-1' && $conf->character_set_client == 'UTF-8') $str=utf8_encode($str);
|
||||
if ($pagecodefrom == 'UTF-8' && $conf->character_set_client == 'ISO-8859-1') $str=utf8_decode($str);
|
||||
if ($pagecodefrom == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_encode($str);
|
||||
if ($pagecodefrom == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_decode($str);
|
||||
return $str;
|
||||
}
|
||||
|
||||
@@ -1123,8 +1123,8 @@ class Ldap
|
||||
function convFromOutputCharset($str,$pagecodeto='UTF-8')
|
||||
{
|
||||
global $conf;
|
||||
if ($pagecodeto == 'ISO-8859-1' && $conf->character_set_client == 'UTF-8') $str=utf8_decode($str);
|
||||
if ($pagecodeto == 'UTF-8' && $conf->character_set_client == 'ISO-8859-1') $str=utf8_encode($str);
|
||||
if ($pagecodeto == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_decode($str);
|
||||
if ($pagecodeto == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_encode($str);
|
||||
return $str;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,13 +331,13 @@ function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$fil
|
||||
* \param format vcal or ical
|
||||
* \param string string to encode
|
||||
* \return string string encoded
|
||||
* \remarks string must be encoded in conf->character_set_client
|
||||
* \remarks string must be encoded in conf->file->character_set_client
|
||||
*/
|
||||
function format_cal($format,$string)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if ($conf->character_set_client == 'ISO-8859-1') $newstring=utf8_encode($string);
|
||||
if ($conf->file->character_set_client == 'ISO-8859-1') $newstring=utf8_encode($string);
|
||||
else $newstring=$string;
|
||||
|
||||
// Now newstring is always UTF8 string
|
||||
|
||||
@@ -32,7 +32,7 @@ function llxHeaderPaybox($title, $head = "")
|
||||
// Si feuille de style en php existe
|
||||
if (file_exists(DOL_DOCUMENT_ROOT.'/'.$conf->css.".php")) $conf->css.=".php";
|
||||
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||
//print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
||||
@@ -156,11 +156,11 @@ function print_paybox_redirect($PRICE,$CURRENCY,$EMAIL,$urlok,$urlko,$TAG)
|
||||
dol_syslog("PBX_SOURCE: $PBX_SOURCE", LOG_DEBUG);
|
||||
dol_syslog("PBX_TYPEPAIEMENT: $PBX_TYPEPAIEMENT", LOG_DEBUG);
|
||||
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
||||
print '<html>'."\n";
|
||||
print '<head>'."\n";
|
||||
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$conf->character_set_client."\">\n";
|
||||
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$conf->file->character_set_client."\">\n";
|
||||
print '</head>'."\n";
|
||||
print '<body>'."\n";
|
||||
print "\n";
|
||||
|
||||
@@ -60,7 +60,7 @@ function llxHeaderVierge($title, $head = "")
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||
//print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
||||
@@ -124,7 +124,7 @@ llxHeaderVierge($langs->trans("DolibarrDemo"));
|
||||
|
||||
|
||||
// Search modules
|
||||
$dirlist=$conf->dol_document_root;
|
||||
$dirlist=$conf->file->dol_document_root;
|
||||
|
||||
$filename = array();
|
||||
$modules = array();
|
||||
|
||||
@@ -110,7 +110,7 @@ function llxHeaderVierge($title, $head = "")
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
print "<html>\n";
|
||||
print "<head>\n";
|
||||
print "<title>".$title."</title>\n";
|
||||
|
||||
@@ -37,7 +37,7 @@ function llxHeaderVierge($title, $head = "")
|
||||
{
|
||||
global $user, $conf, $langs;
|
||||
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
print "<html>\n";
|
||||
print "<head>\n";
|
||||
print "<title>".$title."</title>\n";
|
||||
|
||||
@@ -109,7 +109,7 @@ if (! defined('DONOTLOADCONF') && file_exists($conffile))
|
||||
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_';
|
||||
define('MAIN_DB_PREFIX',(isset($dolibarr_main_db_prefix)?$dolibarr_main_db_prefix:''));
|
||||
define('DOL_DATA_ROOT',(isset($dolibarr_main_data_root)?$dolibarr_main_data_root:''));
|
||||
if (empty($conf->character_set_client)) $conf->character_set_client=$charset;
|
||||
if (empty($conf->file->character_set_client)) $conf->file->character_set_client=$charset;
|
||||
if (empty($conf->db->dolibarr_main_db_collation)) $conf->db->dolibarr_main_db_collation='latin1_swedish_ci';
|
||||
if (empty($conf->db->user)) $conf->db->user='';
|
||||
|
||||
@@ -172,7 +172,7 @@ function conf($dolibarr_main_document_root)
|
||||
$conf->db->user = trim($dolibarr_main_db_user);
|
||||
$conf->db->pass = trim($dolibarr_main_db_pass);
|
||||
|
||||
if (empty($conf->character_set_client)) $conf->character_set_client="UTF-8";
|
||||
if (empty($conf->file->character_set_client)) $conf->file->character_set_client="UTF-8";
|
||||
if (empty($conf->db->dolibarr_main_db_collation)) $conf->db->dolibarr_main_db_collation='latin1_swedish_ci';
|
||||
|
||||
return 1;
|
||||
@@ -190,12 +190,12 @@ function pHeader($soutitre,$next,$action='none')
|
||||
$langs->load("admin");
|
||||
|
||||
// On force contenu dans format sortie
|
||||
header("Content-type: text/html; charset=".$conf->character_set_client);
|
||||
header("Content-type: text/html; charset=".$conf->file->character_set_client);
|
||||
|
||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
|
||||
print '<html>'."\n";
|
||||
print '<head>'."\n";
|
||||
print '<meta http-equiv="content-type" content="text/html; charset='.$conf->character_set_client.'">'."\n";
|
||||
print '<meta http-equiv="content-type" content="text/html; charset='.$conf->file->character_set_client.'">'."\n";
|
||||
print '<link rel="stylesheet" type="text/css" href="default.css">'."\n";
|
||||
print '<title>'.$langs->trans("Help").'</title>'."\n";
|
||||
print '</head>'."\n";
|
||||
|
||||
@@ -81,7 +81,7 @@ if ($_GET["id"])
|
||||
|
||||
// Charge les modules soumis a permissions
|
||||
$modules = array();
|
||||
foreach ($conf->dol_document_root as $dirroot)
|
||||
foreach ($conf->file->dol_document_root as $dirroot)
|
||||
{
|
||||
$dir = $dirroot . "/includes/modules/";
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ print '<td valign="bottom"><input id="username" type="text" '.$disabled.' name="
|
||||
|
||||
$title='';
|
||||
$title.=$langs->trans("SessionName").': '.session_name();
|
||||
if ($conf->main_authentication) $title.=", ".$langs->trans("AuthenticationMode").': '.$conf->main_authentication;
|
||||
if ($conf->file->main_authentication) $title.=", ".$langs->trans("AuthenticationMode").': '.$conf->file->main_authentication;
|
||||
|
||||
// Show logo (search in order: small company logo, large company logo, theme logo, common logo)
|
||||
$width=0;
|
||||
|
||||
@@ -103,7 +103,7 @@ $db->begin();
|
||||
// Charge les modules soumis a permissions
|
||||
$modules = array();
|
||||
|
||||
$listdir=$conf->dol_document_root;
|
||||
$listdir=$conf->file->dol_document_root;
|
||||
foreach($listdir as $dirroot)
|
||||
{
|
||||
$dir=$dirroot."/includes/modules/";
|
||||
|
||||
Reference in New Issue
Block a user