diff --git a/htdocs/admin/menus.php b/htdocs/admin/menus.php index 707cc776c6d..6fce2f01294 100644 --- a/htdocs/admin/menus.php +++ b/htdocs/admin/menus.php @@ -141,12 +141,6 @@ $head[$h][1] = $langs->trans("MenuAdmin"); $head[$h][2] = 'editor'; $h++; -$head[$h][0] = DOL_URL_ROOT."/admin/menus/other.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'misc'; -$h++; - - print '
'; print ''; print ''; diff --git a/htdocs/admin/menus/index.php b/htdocs/admin/menus/index.php index f55a2a74874..a1ebb21838b 100644 --- a/htdocs/admin/menus/index.php +++ b/htdocs/admin/menus/index.php @@ -224,11 +224,6 @@ $head[$h][1] = $langs->trans("MenuAdmin"); $head[$h][2] = 'editor'; $h++; -$head[$h][0] = DOL_URL_ROOT."/admin/menus/other.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'misc'; -$h++; - print dol_get_fiche_head($head, 'editor', '', -1); print ''.$langs->trans("MenusEditorDesc")."
\n"; diff --git a/htdocs/admin/menus/other.php b/htdocs/admin/menus/other.php deleted file mode 100644 index 2450d572abd..00000000000 --- a/htdocs/admin/menus/other.php +++ /dev/null @@ -1,106 +0,0 @@ - - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/** - * \file htdocs/admin/menus/other.php - * \ingroup core - * \brief Menus options setup - */ - -require '../../main.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; - -// Load translation files required by the page -$langs->loadLangs(array("user", "other", "admin")); - -if (!$user->admin) accessforbidden(); - -$action = GETPOST('action', 'aZ09'); - - -/* - * Actions - */ - -if ($action == 'activate_hidemenu') -{ - dolibarr_set_const($db, "MAIN_MENU_HIDE_UNAUTHORIZED", '1', 'chaine', 0, '', $conf->entity); - header("Location: ".$_SERVER["PHP_SELF"]); - exit; -} elseif ($action == 'disable_hidemenu') -{ - dolibarr_del_const($db, "MAIN_MENU_HIDE_UNAUTHORIZED", $conf->entity); - header("Location: ".$_SERVER["PHP_SELF"]); - exit; -} - - -/* - * View - */ - -llxHeader('', $langs->trans("Setup")); - -print load_fiche_titre($langs->trans("Menus"), '', 'title_setup'); - - -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/menus.php"; -$head[$h][1] = $langs->trans("MenuHandlers"); -$head[$h][2] = 'handler'; -$h++; - -$head[$h][0] = DOL_URL_ROOT."/admin/menus/index.php"; -$head[$h][1] = $langs->trans("MenuAdmin"); -$head[$h][2] = 'editor'; -$h++; - -$head[$h][0] = DOL_URL_ROOT."/admin/menus/other.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'misc'; -$h++; - -print dol_get_fiche_head($head, 'misc', '', -1); - - -// Other Options - -print ''; -print ''; -print ''; -print ''; -print ''; - -// Hide unauthorized menu -print ''; -print ''; -print '"; -print ''; - -print '
'.$langs->trans("Parameters").''.$langs->trans("Status").'
'.$langs->trans("HideUnauthorizedMenu").''; -if (empty($conf->global->MAIN_MENU_HIDE_UNAUTHORIZED)) -{ - print ''.img_picto($langs->trans("Disabled"), 'switch_off').''; -} else { - print ''.img_picto($langs->trans("Enabled"), 'switch_on').''; -} -print "
'; - -// End of page -llxFooter(); -$db->close();