diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php
index ad2cd408471..3652c04518d 100644
--- a/htdocs/admin/ihm.php
+++ b/htdocs/admin/ihm.php
@@ -156,7 +156,8 @@ if ($action == 'update')
dolibarr_set_const($db, "MAIN_SIZE_SHORTLIST_LIMIT", GETPOST("main_size_shortliste_limit", 'int'), 'chaine', 0, '', $conf->entity);
//dolibarr_set_const($db, "MAIN_DISABLE_JAVASCRIPT", GETPOST("MAIN_DISABLE_JAVASCRIPT", 'aZ09'), 'chaine', 0, '', $conf->entity);
- dolibarr_set_const($db, "MAIN_BUTTON_HIDE_UNAUTHORIZED", GETPOST("MAIN_BUTTON_HIDE_UNAUTHORIZED", 'aZ09'), 'chaine', 0, '', $conf->entity);
+ //dolibarr_set_const($db, "MAIN_BUTTON_HIDE_UNAUTHORIZED", GETPOST("MAIN_BUTTON_HIDE_UNAUTHORIZED", 'aZ09'), 'chaine', 0, '', $conf->entity);
+ //dolibarr_set_const($db, "MAIN_MENU_HIDE_UNAUTHORIZED", GETPOST("MAIN_MENU_HIDE_UNAUTHORIZED", 'aZ09'), 'chaine', 0, '', $conf->entity);
dolibarr_set_const($db, "MAIN_START_WEEK", GETPOST("MAIN_START_WEEK", 'int'), 'chaine', 0, '', $conf->entity);
dolibarr_set_const($db, "MAIN_DEFAULT_WORKING_DAYS", GETPOST("MAIN_DEFAULT_WORKING_DAYS", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
@@ -241,6 +242,7 @@ print '';
clearstatcache();
print '
';
+print '
';
print '
';
print '| '.img_picto('', 'language').' '.$langs->trans("Language").' | | ';
print '
';
@@ -259,12 +261,14 @@ print '';
print '';
print '
'."\n";
+print '
';
// Themes and themes options
showSkins(null, 1);
print '
';
// Other
+print '';
print '
';
print '| '.$langs->trans("Miscellaneous").' | | ';
print ' ';
@@ -327,9 +331,18 @@ print '';
print ' | | ';
print '
';
+// Hide unauthorized menus
+print '| '.$langs->trans("HideUnauthorizedMenu").' | ';
+//print $form->selectyesno('MAIN_MENU_HIDE_UNAUTHORIZED', isset($conf->global->MAIN_MENU_HIDE_UNAUTHORIZED) ? $conf->global->MAIN_MENU_HIDE_UNAUTHORIZED : 0, 1);
+print ajax_constantonoff("MAIN_MENU_HIDE_UNAUTHORIZED", array(), $conf->entity, 0, 0, 1, 0);
+print ' | ';
+print ' | ';
+print '
';
+
// Hide unauthorized button
print '| '.$langs->trans("ButtonHideUnauthorized").' | ';
-print $form->selectyesno('MAIN_BUTTON_HIDE_UNAUTHORIZED', isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) ? $conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED : 0, 1);
+//print $form->selectyesno('MAIN_BUTTON_HIDE_UNAUTHORIZED', isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) ? $conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED : 0, 1);
+print ajax_constantonoff("MAIN_BUTTON_HIDE_UNAUTHORIZED", array(), $conf->entity, 0, 0, 1, 0);
print ' | ';
print ' | ';
print '
';
@@ -354,7 +367,7 @@ print '';
// Hide wiki link on login page
$pictohelp = '';
-print '| '.$langs->trans("DisableLinkToHelp", $pictohelp).' | ';
+print ' |
| '.str_replace('{picto}', $pictohelp, $langs->trans("DisableLinkToHelp", '{picto}')).' | ';
print ajax_constantonoff("MAIN_HELP_DISABLELINK", array(), $conf->entity, 0, 0, 1, 0);
//print $form->selectyesno('MAIN_HELP_DISABLELINK', isset($conf->global->MAIN_HELP_DISABLELINK) ? $conf->global->MAIN_HELP_DISABLELINK : 0, 1);
print ' | ';
@@ -381,6 +394,7 @@ $doleditor->Create();
print '
'."\n";
print '
'."\n";
+print '
';
print '
';
diff --git a/htdocs/core/lib/usergroups.lib.php b/htdocs/core/lib/usergroups.lib.php
index 9277ebbd81b..913112e04e6 100644
--- a/htdocs/core/lib/usergroups.lib.php
+++ b/htdocs/core/lib/usergroups.lib.php
@@ -315,6 +315,7 @@ function showSkins($fuser, $edit = 0, $foruserprofile = false)
if ($foruserprofile) $colspan = 4;
$thumbsbyrow = 6;
+ print '';
print '
';
// Title
@@ -911,4 +912,5 @@ function showSkins($fuser, $edit = 0, $foruserprofile = false)
} else {
}
print '
';
+ print '
';
}