@package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2012 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ define('GLPI_ROOT', '../../..'); include GLPI_ROOT . "/inc/includes.php"; PluginMonitoringProfile::checkRight("config", "w"); commonHeader($LANG['plugin_monitoring']['title'][0], $_SERVER["PHP_SELF"], "plugins", "monitoring", "config"); $pmConfig = new PluginMonitoringConfig(); if (isset($_POST["update"])) { $pmConfig->update($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST['timezones_add'])) { $input = array(); $pmConfig->getFromDB($_POST['id']); $input['id'] = $_POST['id']; $a_timezones = importArrayFromDB($pmConfig->fields['timezones']); foreach ($_POST['timezones_to_add'] as $timezone) { $a_timezones[] = $timezone; } $input['timezones'] = exportArrayToDB($a_timezones);
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Monitoring. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("servicescatalog", "w"); $dropdown = new PluginMonitoringServicescatalog(); if (isset($_GET['detail']) and isset($_GET['id'])) { Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "servicescatalog"); $dropdown->showBADetail($_GET['id']); Html::footer(); } else { Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "servicescatalog"); include GLPI_ROOT . "/front/dropdown.common.form.php"; }
------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("weathermap", "w"); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "weathermaplink"); $pmWeathermaplink = new PluginMonitoringWeathermaplink(); if (isset($_POST["add"])) { $split = explode("-", $_POST['linksource']); $_POST['plugin_monitoring_weathermapnodes_id_1'] = $split[0]; $_POST['plugin_monitoring_services_id'] = $split[1]; $pmWeathermaplink->add($_POST); Html::back(); } else { if (isset($_POST["update"])) { $_POST['id'] = $_POST['id_update']; unset($_POST['plugin_monitoring_weathermapnodes_id_1']); unset($_POST['plugin_monitoring_weathermapnodes_id_2']); $_POST['bandwidth_in'] = $_POST['up_bandwidth_in']; $_POST['bandwidth_out'] = $_POST['up_bandwidth_out'];
@package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2012 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ define('GLPI_ROOT', '../../..'); include GLPI_ROOT . "/inc/includes.php"; PluginMonitoringProfile::checkRight("view", "w"); commonHeader($LANG['plugin_monitoring']['title'][0], $_SERVER["PHP_SELF"], "plugins", "monitoring", "displayview"); $pmDisplayview = new PluginMonitoringDisplayview(); if (isset($_POST['users_id'])) { if ($_POST['users_id'] == 'public') { $_POST['users_id'] = '0'; } else { $_POST['users_id'] = $_SESSION['glpiID']; } } if (isset($_POST["add"])) { $pmDisplayview->add($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["update"])) { $pmDisplayview->update($_POST);
it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Plugin Monitoring for 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Monitoring. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("check", "r"); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "checks"); Search::show('PluginMonitoringCheck'); Html::footer();
------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("command", "w"); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "command"); $pMonitoringCommand = new PluginMonitoringCommand(); if (isset($_POST["copy"])) { $pMonitoringCommand->showForm("", array(), $_POST); Html::footer(); exit; } else { if (isset($_POST["add"])) { $_POST = $pMonitoringCommand->convertPostdata($_POST); $pMonitoringCommand->add($_POST); Html::back(); } else { if (isset($_POST["update"])) { $_POST = $pMonitoringCommand->convertPostdata($_POST); $pMonitoringCommand->update($_POST);
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Monitoring. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("componentscatalog", "w"); // //Html::header(__('Monitoring', 'monitoring'),$_SERVER["PHP_SELF"], "plugins", // "monitoring", "reports"); $pmComponentscatalog = new PluginMonitoringComponentscatalog(); if ($_POST['reporttype'] == 'simplereport') { $pmComponentscatalog->generateReport($_POST); } else { $pmComponentscatalog->generateSyntheseReport($_POST); }
it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Plugin Monitoring for 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Monitoring. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package Plugin Monitoring for GLPI @author David Durieux @co-author @comment @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; PluginMonitoringProfile::checkRight("component", "r"); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "components"); Search::show('PluginMonitoringComponent'); Html::footer();