Hidde version on login page
Create option and use it in login template
This commit is contained in:
parent
e18caccdc9
commit
8b6d613cb0
@ -105,6 +105,13 @@ else if ($action == 'MAIN_ANTIVIRUS_PARAM')
|
||||
if (! dolibarr_set_const($db, "MAIN_ANTIVIRUS_PARAM", $_POST["MAIN_ANTIVIRUS_PARAM"],'chaine',0,'',$conf->entity)) dol_print_error($db);
|
||||
else setEventMessage($langs->trans("RecordModifiedSuccessfully"));
|
||||
}
|
||||
else if ($action == 'MAIN_SECURITY_HIDDENNUMVER')
|
||||
{
|
||||
if (! dolibarr_set_const($db, "MAIN_SECURITY_HIDDENNUMVER", $_POST["MAIN_SECURITY_HIDDENNUMVER"],'chaine',0,'',$conf->entity)) dol_print_error($db);
|
||||
else setEventMessage($langs->trans("RecordModifiedSuccessfully"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Delete file
|
||||
else if ($action == 'delete')
|
||||
@ -177,6 +184,28 @@ print '<td colspan="3">'.$langs->trans("Parameters").'</td>';
|
||||
print '<td align="right" width="100">'.$langs->trans("Status").'</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Hidde version number
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td colspan="3">'.$langs->trans("HiddeNumVersion").'</td>'; // TODO add lag
|
||||
print '<td align="right">';
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
print ajax_constantonoff('MAIN_SECURITY_HIDDENNUMVER');
|
||||
}
|
||||
else
|
||||
{
|
||||
if (empty($conf->global->MAIN_SECURITY_HIDDENNUMVER))
|
||||
{
|
||||
print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_MAIN_SECURITY_HIDDENNUMVER">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_MAIN_SECURITY_HIDDENNUMVER">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Enable Captcha code
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].">";
|
||||
|
||||
@ -27,6 +27,8 @@ if (GETPOST('dol_use_jmobile')) $conf->dol_use_jmobile=1;
|
||||
|
||||
$arrayofjs=array('/core/js/dst.js'.(empty($conf->dol_use_jmobile)?'':'?version='.urlencode(DOL_VERSION))); // Javascript code on logon page only to detect user tz, dst_observed, dst_first, dst_second
|
||||
$titleofloginpage=$langs->trans('Login').' '.$title; // title is defined by dol_loginfunction in security2.lib.php
|
||||
$titleAff = !empty($conf->$global->MAIN_SECURITY_HIDDENNUMVER) ? dol_escape_htmltag($title) : "Dolibarr" ;
|
||||
|
||||
print top_htmlhead('',$titleofloginpage,0,0,$arrayofjs);
|
||||
?>
|
||||
<!-- BEGIN PHP TEMPLATE LOGIN.TPL.PHP -->
|
||||
@ -61,8 +63,8 @@ $(document).ready(function () {
|
||||
<input type="hidden" name="dol_no_mouse_hover" id="dol_no_mouse_hover" value="<?php echo $dol_no_mouse_hover; ?>" />
|
||||
<input type="hidden" name="dol_use_jmobile" id="dol_use_jmobile" value="<?php echo $dol_use_jmobile; ?>" />
|
||||
|
||||
<table class="login_table_title center" summary="<?php echo dol_escape_htmltag($title); ?>">
|
||||
<tr class="vmenu"><td align="center"><?php echo $title; ?></td></tr>
|
||||
<table class="login_table_title center" summary="<?php echo $titleAff; ?>">
|
||||
<tr class="vmenu"><td align="center"><?php echo $titleAff; ?></td></tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
@ -81,6 +81,7 @@ MustBeLowerThanPHPLimit=Remarque : Votre PHP limite la taille des envois à <b>
|
||||
NoMaxSizeByPHPLimit=Aucune limite configurée dans votre serveur PHP
|
||||
MaxSizeForUploadedFiles=Taille maximum des fichiers envoyés (0 pour interdire l'envoi)
|
||||
UseCaptchaCode=Utilisation du code graphique (CAPTCHA) sur la page de connexion
|
||||
HiddeNumVersion=Cacher le numero de version sur la page de login
|
||||
UseAvToScanUploadedFiles=Utiliser un antivirus pour vérifier les fichiers envoyés
|
||||
AntiVirusCommand= Chemin complet vers la commande antivirus
|
||||
AntiVirusCommandExample= Exemple pour ClamWin : c:\\Progra~1\\ClamWin\\bin\\clamscan.exe<br>Exemple pour ClamAv : /usr/bin/clamscan
|
||||
|
||||
Loading…
Reference in New Issue
Block a user