Qual: Remove deprecated code
This commit is contained in:
parent
92df58e7ba
commit
b5bc6dac90
@ -115,7 +115,7 @@ function donnefocus() {ldelim}
|
||||
<center>
|
||||
<table width="90%"><tr><td align="center">
|
||||
|
||||
{if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') || (! $disabled)}
|
||||
{if ($mode == 'dolibarr') || (! $disabled)}
|
||||
<font style="font-size: 12px;">
|
||||
{$langs->trans('SendNewPasswordDesc')}
|
||||
</font>
|
||||
|
||||
@ -557,14 +557,7 @@ function write_conf_file($conffile)
|
||||
fputs($fp,"\n");
|
||||
|
||||
/* Authentication */
|
||||
if ($_POST["db_type"] == 'mssql')
|
||||
{
|
||||
fputs($fp, '$dolibarr_main_authentication=\'dolibarr_mdb2\';');
|
||||
}
|
||||
else
|
||||
{
|
||||
fputs($fp, '$dolibarr_main_authentication=\'dolibarr\';');
|
||||
}
|
||||
fputs($fp, '$dolibarr_main_authentication=\'dolibarr\';');
|
||||
fputs($fp,"\n");
|
||||
|
||||
fputs($fp, '?>');
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
<ul class="pageitem">
|
||||
<li class="textbox">
|
||||
<span class="header">{$langs->trans('Infos')}</span>
|
||||
{if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') || (! $disabled)}
|
||||
{if ($mode == 'dolibarr') || (! $disabled)}
|
||||
{$langs->trans('SendNewPasswordDesc')}
|
||||
{else}
|
||||
{$langs->trans('AuthenticationDoesNotAllowSendNewPassword', $mode)}
|
||||
|
||||
@ -200,7 +200,7 @@ if ($conf->global->MAIN_SMARTY)
|
||||
|
||||
// Send password button enabled ?
|
||||
$disabled='disabled';
|
||||
if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') $disabled='';
|
||||
if ($mode == 'dolibarr') $disabled='';
|
||||
if ($conf->global->MAIN_SECURITY_ENABLE_SENDPASSWORD) $disabled=''; // To force button enabled
|
||||
$smarty->assign('disabled', $disabled);
|
||||
|
||||
@ -325,7 +325,7 @@ else
|
||||
|
||||
// Send password button enabled ?
|
||||
$disabled='disabled';
|
||||
if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') $disabled='';
|
||||
if ($mode == 'dolibarr') $disabled='';
|
||||
if ($conf->global->MAIN_SECURITY_ENABLE_SENDPASSWORD) $disabled=''; // To force button enabled
|
||||
|
||||
// Table 2
|
||||
@ -388,7 +388,7 @@ else
|
||||
|
||||
print '<center>'."\n";
|
||||
print '<table width="90%"><tr><td align="center">';
|
||||
if (($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') || (! $disabled))
|
||||
if (($mode == 'dolibarr') || (! $disabled))
|
||||
{
|
||||
print '<font style="font-size: 12px;">'.$langs->trans("SendNewPasswordDesc").'</font>'."\n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user