data = $data; } public function apply() { $config = array(); $config['security'] = $this->data['securityConfig']; try { Config::fromArray($config) ->setConfigFile(Config::resolvePath('modules/monitoring/config.ini')) ->saveIni(); } catch (Exception $e) { $this->error = $e; return false; } $this->error = false; return true; } public function getSummary() { $pageTitle = '
' . mt( 'monitoring', 'Icinga Web 2 will protect your monitoring environment against' . ' prying eyes using the configuration specified below:' ) . '
'; $pageHtml = '' . '' . mt('monitoring', 'Protected Custom Variables') . ' | ' . '' . ($this->data['securityConfig']['protected_customvars'] ? ( $this->data['securityConfig']['protected_customvars'] ) : mt('monitoring', 'None', 'monitoring.protected_customvars')) . ' | ' . '