Ejemplo n.º 1
0
  @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";
Session::checkCentralAccess();
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "services");
$pmService = new PluginMonitoringService();
if (isset($_POST['update'])) {
    foreach ($_POST['arg'] as $key => $value) {
        if ($value == '') {
            unset($_POST['arg'][$key]);
        }
    }
    $_POST['arguments'] = exportArrayToDB($_POST['arg']);
    $pmService->update($_POST);
    Html::back();
}
if (PluginMonitoringProfile::haveRight("componentscatalog", 'w')) {
    $pmService->showCustomArguments($_GET['id']);
}
Html::footer();