disableCsrfValidation(); } protected function checkInput(): bool { $fields = [ 'auditlog_enabled' => 'db config.auditlog_enabled', 'hk_audit_mode' => 'db config.hk_audit_mode', 'hk_audit' => 'db config.hk_audit' ]; $ret = $this->validateInput($fields); if (!$ret) { $this->setResponse(new CControllerResponseFatal()); } return $ret; } protected function checkPermissions(): bool { return $this->checkAccess(CRoleHelper::UI_ADMINISTRATION_AUDIT_LOG); } protected function doAction(): void { $data = [ 'auditlog_enabled' => $this->getInput('auditlog_enabled', CSettingsHelper::get(CSettingsHelper::AUDITLOG_ENABLED) ), 'hk_audit_mode' => $this->getInput('hk_audit_mode', CHousekeepingHelper::get( CHousekeepingHelper::HK_AUDIT_MODE )), 'hk_audit' => $this->getInput('hk_audit', CHousekeepingHelper::get(CHousekeepingHelper::HK_AUDIT)) ]; $response = new CControllerResponseData($data); $response->setTitle(_('Configuration of audit log')); $this->setResponse($response); } }