function defineTabs($options = array()) { global $LANG, $CFG_GLPI; if (isset($_GET['glpi_tab'])) { setActiveTab("PluginMonitoringDisplay", $_GET['glpi_tab']); } $pmDisplayview = new PluginMonitoringDisplayview(); $ong = array(); if (PluginMonitoringProfile::haveRight("servicescatalog", 'r')) { $ong[1] = $LANG['plugin_monitoring']['servicescatalog'][0]; } if (PluginMonitoringProfile::haveRight("componentscatalog", 'r')) { $ong[2] = $LANG['plugin_monitoring']['componentscatalog'][0]; } $ong[3] = $LANG['plugin_monitoring']['service'][21]; $ong[4] = $LANG['plugin_monitoring']['host'][1]; if (PluginMonitoringProfile::haveRight("view", 'r')) { $i = 5; $a_views = $pmDisplayview->getViews(); foreach ($a_views as $name) { $ong[$i] = htmlentities($name); $i++; } } return $ong; }
GLPI 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 2 of the License, or (at your option) any later version. GLPI 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 GLPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------- */ // ---------------------------------------------------------------------- // Original Author of file: Julien Dombre // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include_once GLPI_ROOT . "/config/based_config.php"; include_once GLPI_ROOT . "/inc/common.function.php"; include_once GLPI_ROOT . "/inc/display.function.php"; header("Content-Type: text/html; charset=UTF-8"); header_nocache(); setGlpiSessionPath(); startGlpiSession(); // Manage tabs if (isset($_REQUEST['glpi_tab']) && isset($_REQUEST['itemtype'])) { setActiveTab($_REQUEST['itemtype'], $_REQUEST['glpi_tab']); }