Add option to hide the link "need help"
This commit is contained in:
parent
df2b3669dc
commit
3544914045
@ -76,6 +76,7 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||
|
||||
dolibarr_set_const($db, "MAIN_MOTD", dol_htmlcleanlastbr($_POST["main_motd"]),'chaine',0,'',$conf->entity);
|
||||
dolibarr_set_const($db, "MAIN_HOME", dol_htmlcleanlastbr($_POST["main_home"]),'chaine',0,'',$conf->entity);
|
||||
dolibarr_set_const($db, "MAIN_HELPCENTER_DISABLELINK", $_POST["MAIN_HELPCENTER_DISABLELINK"],'chaine',0,'',0); // Param for all entities
|
||||
|
||||
$_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer
|
||||
|
||||
@ -244,7 +245,16 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||
print '<textarea name="main_home" cols="90" rows="'.ROWS_5.'">'.dol_htmlentitiesbr_decode($conf->global->MAIN_HOME).'</textarea>';
|
||||
}
|
||||
print '</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
// Hide need help link on login page
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DisableLinkToHelpCenter").'</td><td>';
|
||||
print $html->selectyesno('MAIN_HELPCENTER_DISABLELINK',isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0,1);
|
||||
print '</td>';
|
||||
print '<td width="20"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
print '</table>';
|
||||
|
||||
print '<br><center>';
|
||||
print '<input class="button" type="submit" value="'.$langs->trans("Save").'">';
|
||||
@ -355,8 +365,16 @@ else
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("MessageLogin").'</td><td>';
|
||||
print nl2br($conf->global->MAIN_HOME);
|
||||
print '</td></tr>';
|
||||
|
||||
// Link to help center
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DisableLinkToHelpCenter").'</td><td>';
|
||||
print yn($conf->global->MAIN_HELPCENTER_DISABLELINK);
|
||||
print '</td></tr>';
|
||||
|
||||
print '</table>';
|
||||
|
||||
|
||||
print '<div class="tabsAction">';
|
||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit">'.$langs->trans("Modify").'</a>';
|
||||
print '</div>';
|
||||
|
||||
@ -234,6 +234,7 @@ UMask=UMask parameter for new files on Unix/Linux/BSD file system.
|
||||
UMaskExplanation=This parameter allow you to define permissions set by default on files created by Dolibarr on server (during upload for example).<br>It must be the octal value (for example, 0666 means read and write for everyone).<br>Ce paramètre ne sert pas sous un serveur Windows.
|
||||
SeeWikiForAllTeam=Take a look at the wiki page for full list of all actors and their organisation
|
||||
UseACacheDelay = Delay for caching export response in seconds (0 or empty for no cache)
|
||||
DisableLinkToHelpCenter=Hide link "Need help or support" on login page
|
||||
|
||||
# Modules
|
||||
Module0Name=Users & groups
|
||||
|
||||
@ -234,6 +234,8 @@ UMask = Paramètre UMask des nouveaux fichiers sous Unix/Linux/BSD.
|
||||
UMaskExplanation = Ce paramètre permet de définir les droits des fichiers créés sur le serveur par Dolibarr (lors d'upload par exemple).<br>Ce doit être la valeur octal (par exemple 0666 signifie lecture/ecriture pour tous).<br>Ce paramètre n'a aucun effet sur un serveur Windows.
|
||||
SeeWikiForAllTeam = Voir le wiki pour le détail de tous les acteurs et leur organisation
|
||||
UseACacheDelay = Delay de mise en cache de l'export en secondes (0 ou vide pour aucun cache)
|
||||
DisableLinkToHelpCenter=Cacher le lien "Besoin d'un support ou aide" sur la page de login
|
||||
|
||||
# Modules = undefined
|
||||
Module0Name = Utilisateurs & groupes
|
||||
Module0Desc = Gestion des utilisateurs et groupes
|
||||
|
||||
@ -188,7 +188,6 @@ function dol_loginfunction($langs,$conf,$mysoc)
|
||||
{
|
||||
print '<a style="color: #888888; font-size: 10px" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php">(';
|
||||
print $langs->trans("PasswordForgotten");
|
||||
if (! empty($conf->global->MAIN_HELPCENTER_DISABLELINK)) print ')';
|
||||
}
|
||||
|
||||
if (empty($conf->global->MAIN_HELPCENTER_DISABLELINK))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user