case 2: $user->showItems(); break; case 3: Ticket::showListForUser($_POST["id"]); break; case 4: Group_User::showForUser($user); break; case 5: Document::showAssociated($user); break; case 6: $config = new Config(); $user->computePreferences(); $config->showFormUserPrefs($user->fields); break; case 11: Reservation::showForUser($_POST["id"]); break; case 12: Auth::showSynchronizationForm($_POST["id"]); break; case 13: Log::showForItem($user); break; default: if (!Plugin::displayAction($user, $_REQUEST['glpi_tab'])) { Profile_User::showForUser($user); } }
// Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; header("Content-Type: text/html; charset=UTF-8"); header_nocache(); if (!isset($_POST["id"])) { exit; } checkRight("config", "r"); $config = new Config(); switch ($_REQUEST['glpi_tab']) { case -1: $config->showFormDisplay(); $config->showFormUserPrefs($CFG_GLPI); $config->showFormInventory(); $config->showFormHelpdesk(); $config->showSystemInformations(); if (DBConnection::isDBSlaveActive()) { $config->showFormDBSlave(); } Plugin::displayAction($config, $_REQUEST['glpi_tab']); break; case 1: $config->showFormDisplay(); break; case 2: $config->showFormUserPrefs($CFG_GLPI); break; case 3: