mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 20:41:26 +01:00
Ajout info mode authentification sur page logon
This commit is contained in:
@@ -1192,13 +1192,14 @@ function dol_loginfunction($notused,$pearstatus)
|
|||||||
print '<td><input name="username" class="flat" size="15" maxlength="25" value="" tabindex="1" /></td>';
|
print '<td><input name="username" class="flat" size="15" maxlength="25" value="" tabindex="1" /></td>';
|
||||||
|
|
||||||
// Affiche logo du theme si existe, sinon logo commun
|
// Affiche logo du theme si existe, sinon logo commun
|
||||||
|
if ($conf->main_authentication) $title.=$langs->trans("AuthenticationMode").': '.$conf->main_authentication;
|
||||||
if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png'))
|
if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png'))
|
||||||
{
|
{
|
||||||
print '<td rowspan="2"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png"></td>';
|
print '<td rowspan="2"><img title="'.$title.'" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png"></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td rowspan="2"><img src="'.DOL_URL_ROOT.'/theme/login_logo.png"></td>';
|
print '<td rowspan="2"><img title="'.$title.'" src="'.DOL_URL_ROOT.'/theme/login_logo.png"></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@@ -1208,9 +1209,7 @@ function dol_loginfunction($notused,$pearstatus)
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td colspan="3" style="text-align:center;"><br>';
|
print '<tr><td colspan="3" style="text-align:center;"><br>';
|
||||||
if ($dolibarr_main_authentication) $title.=$langs->trans("AuthenticationMode").': '.$dolibarr_main_authentication;
|
print '<input type="submit" class="button" value=" '.$langs->trans("Connection").' " tabindex="4" />';
|
||||||
|
|
||||||
print '<input type="submit" class="button" value=" '.$langs->trans("Connection").' " alt="'.$title.' tabindex="4" />';
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
if (! $conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK)
|
if (! $conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK)
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ if (! isset($character_set_client) || ! $character_set_client) $character_set_cl
|
|||||||
$conf->character_set_client=$character_set_client;
|
$conf->character_set_client=$character_set_client;
|
||||||
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_';
|
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_';
|
||||||
$conf->db->prefix = $dolibarr_main_db_prefix;
|
$conf->db->prefix = $dolibarr_main_db_prefix;
|
||||||
|
$conf->main_authentication = $dolibarr_main_authentication;
|
||||||
|
|
||||||
// Defini prefix
|
// Defini prefix
|
||||||
if (isset($_SERVER["LLX_DBNAME"])) $dolibarr_main_db_prefix=$_SERVER["LLX_DBNAME"];
|
if (isset($_SERVER["LLX_DBNAME"])) $dolibarr_main_db_prefix=$_SERVER["LLX_DBNAME"];
|
||||||
|
|||||||
Reference in New Issue
Block a user