. **/ class CControllerAutoregEdit extends CController { protected function init() { $this->disableCsrfValidation(); } protected function checkInput() { return true; } protected function checkPermissions() { return $this->checkAccess(CRoleHelper::UI_ADMINISTRATION_GENERAL); } protected function doAction() { $autoreg = API::Autoregistration()->get([ 'output' => ['tls_accept'] ]); $data = [ 'tls_in_none' => ($autoreg['tls_accept'] & HOST_ENCRYPTION_NONE) == HOST_ENCRYPTION_NONE, 'tls_in_psk' => ($autoreg['tls_accept'] & HOST_ENCRYPTION_PSK) == HOST_ENCRYPTION_PSK, 'js_validation_rules' => CControllerAutoregUpdate::getValidationRules() ]; $data['js_validation_rules'] = (new CFormValidator($data['js_validation_rules']))->getRules(); $response = new CControllerResponseData($data); $response->setTitle(_('Autoregistration')); $this->setResponse($response); } }