Example #1
0
// ----------------------------------------------------------------------
// 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;