Look and feel v12
This commit is contained in:
parent
3e187f8ce0
commit
b3a17c8da4
@ -168,9 +168,9 @@ elseif ($action == 'disable_MAIN_SECURITY_DISABLEFORGETPASSLINK')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'maj_pattern')
|
if ($action == 'updatepattern')
|
||||||
{
|
{
|
||||||
$pattern = GETPOST("pattern");
|
$pattern = GETPOST("pattern", "alpha");
|
||||||
$explodePattern = explode(';', $pattern);
|
$explodePattern = explode(';', $pattern);
|
||||||
|
|
||||||
$patternInError = false;
|
$patternInError = false;
|
||||||
@ -184,6 +184,7 @@ if ($action == 'maj_pattern')
|
|||||||
|
|
||||||
if (!$patternInError) {
|
if (!$patternInError) {
|
||||||
dolibarr_set_const($db, "USER_PASSWORD_PATTERN", $pattern, 'chaine', 0, '', $conf->entity);
|
dolibarr_set_const($db, "USER_PASSWORD_PATTERN", $pattern, 'chaine', 0, '', $conf->entity);
|
||||||
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||||
header("Location: security.php");
|
header("Location: security.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -336,11 +337,9 @@ if ($conf->global->USER_PASSWORD_GENERATED == "Perso") {
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print '<table class="right">';
|
print '<div class="center">';
|
||||||
print '<tr><td>';
|
|
||||||
print '<a class="button" id="linkChangePattern">'.$langs->trans("Save").'</a>';
|
print '<a class="button" id="linkChangePattern">'.$langs->trans("Save").'</a>';
|
||||||
print '</td></tr>';
|
print '</div>';
|
||||||
print '</table>';
|
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
|
|
||||||
print '<script type="text/javascript">';
|
print '<script type="text/javascript">';
|
||||||
@ -369,10 +368,11 @@ if ($conf->global->USER_PASSWORD_GENERATED == "Perso") {
|
|||||||
print ' }';
|
print ' }';
|
||||||
|
|
||||||
print ' function generatelink(){';
|
print ' function generatelink(){';
|
||||||
print ' return "security.php?action=maj_pattern&pattern="+getStringArg();';
|
print ' return "security.php?action=updatepattern&pattern="+getStringArg();';
|
||||||
print ' }';
|
print ' }';
|
||||||
|
|
||||||
print ' function valuePatternChange(){';
|
print ' function valuePatternChange(){';
|
||||||
|
print ' console.log("valuePatternChange");';
|
||||||
print ' var lang_save = "'.$langs->trans("Save").'";';
|
print ' var lang_save = "'.$langs->trans("Save").'";';
|
||||||
print ' var lang_error = "'.$langs->trans("Error").'";';
|
print ' var lang_error = "'.$langs->trans("Error").'";';
|
||||||
print ' var lang_Disabled = "'.$langs->trans("Disabled").'";';
|
print ' var lang_Disabled = "'.$langs->trans("Disabled").'";';
|
||||||
|
|||||||
@ -138,7 +138,7 @@ print '</tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td colspan="2">'.$langs->trans("AntiVirusCommand").'<br>';
|
print '<td colspan="2">'.$langs->trans("AntiVirusCommand").'<br>';
|
||||||
print $langs->trans("AntiVirusCommandExample");
|
print '<span class="opacitymedium">'.$langs->trans("AntiVirusCommandExample").'</span>';
|
||||||
// Check command in inside safe_mode
|
// Check command in inside safe_mode
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -161,7 +161,7 @@ print '</tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td colspan="2">'.$langs->trans("AntiVirusParam").'<br>';
|
print '<td colspan="2">'.$langs->trans("AntiVirusParam").'<br>';
|
||||||
print $langs->trans("AntiVirusParamExample");
|
print '<span class="opacitymedium">'.$langs->trans("AntiVirusParamExample").'</span>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print '<input type="text" name="MAIN_ANTIVIRUS_PARAM" class="minwidth500imp" value="'.(!empty($conf->global->MAIN_ANTIVIRUS_PARAM) ?dol_escape_htmltag($conf->global->MAIN_ANTIVIRUS_PARAM) : '').'">';
|
print '<input type="text" name="MAIN_ANTIVIRUS_PARAM" class="minwidth500imp" value="'.(!empty($conf->global->MAIN_ANTIVIRUS_PARAM) ?dol_escape_htmltag($conf->global->MAIN_ANTIVIRUS_PARAM) : '').'">';
|
||||||
|
|||||||
@ -95,7 +95,7 @@ NextValueForInvoices=Next value (invoices)
|
|||||||
NextValueForCreditNotes=Next value (credit notes)
|
NextValueForCreditNotes=Next value (credit notes)
|
||||||
NextValueForDeposit=Next value (down payment)
|
NextValueForDeposit=Next value (down payment)
|
||||||
NextValueForReplacements=Next value (replacements)
|
NextValueForReplacements=Next value (replacements)
|
||||||
MustBeLowerThanPHPLimit=Note: <b>your</b> PHP configuration currently limits the maximum filesize for upload to <b>%s</b> %s, irrespective of the value of this parameter
|
MustBeLowerThanPHPLimit=Note: your PHP configuration currently limits the maximum filesize for upload to <b>%s</b> %s, irrespective of the value of this parameter
|
||||||
NoMaxSizeByPHPLimit=Note: No limit is set in your PHP configuration
|
NoMaxSizeByPHPLimit=Note: No limit is set in your PHP configuration
|
||||||
MaxSizeForUploadedFiles=Maximum size for uploaded files (0 to disallow any upload)
|
MaxSizeForUploadedFiles=Maximum size for uploaded files (0 to disallow any upload)
|
||||||
UseCaptchaCode=Use graphical code (CAPTCHA) on login page
|
UseCaptchaCode=Use graphical code (CAPTCHA) on login page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user