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email' => ['type' => 'text', 'size' => $i_size], 'organization' => ['type' => 'text', 'size' => $i_size], 'reply-to' => ['type' => 'text', 'size' => $i_size], 'bcc' => ['type' => 'text', 'size' => $i_size], 'standard' => ['type' => 'checkbox', 'label' => $rcmail->gettext('setdefault')], ] ], 'signature' => [ 'name' => $rcmail->gettext('signature'), 'content' => [ 'signature' => [ 'type' => 'textarea', 'size' => $t_cols, 'rows' => $t_rows, 'spellcheck' => true, 'data-html-editor' => true ], 'html_signature' => [ 'type' => 'checkbox', 'label' => $rcmail->gettext('htmlsignature'), 'onclick' => "return rcmail.command('toggle-editor', {id: 'rcmfd_signature', html: this.checked}, '', event)" ], ] ], 'encryption' => [ 'name' => $rcmail->gettext('identityencryption'), 'attrs' => ['class' => 'identity-encryption', 'style' => 'display:none'], 'content' => html::div('identity-encryption-block', '') ] ]; // Enable TinyMCE editor if (!empty(self::$record['html_signature'])) { $form['signature']['content']['signature']['class'] = 'mce_editor'; $form['signature']['content']['signature']['is_escaped'] = true; // Correctly handle HTML entities in HTML editor (#1488483) self::$record['signature'] = htmlspecialchars(self::$record['signature'], ENT_NOQUOTES, RCUBE_CHARSET); } // hide "default" checkbox if only one identity is allowed if ($IDENTITIES_LEVEL > 1) { unset($form['addressing']['content']['standard']); } // disable some field according to access level if ($IDENTITIES_LEVEL == 1 || $IDENTITIES_LEVEL == 3) { $form['addressing']['content']['email']['disabled'] = true; $form['addressing']['content']['email']['class'] = 'disabled'; } if ($IDENTITIES_LEVEL == 4) { foreach ($form['addressing']['content'] as $formfield => $value){ $form['addressing']['content'][$formfield]['disabled'] = true; $form['addressing']['content'][$formfield]['class'] = 'disabled'; } } if (!empty(self::$record['email'])) { self::$record['email'] = rcube_utils::idn_to_utf8(self::$record['email']); } // Allow plugins to modify identity form content $plugin = $rcmail->plugins->exec_hook('identity_form', [ 'form' => $form, 'record' => self::$record ]); $form = $plugin['form']; self::$record = $plugin['record']; // Set form tags and hidden fields list($form_start, $form_end) = self::get_form_tags($attrib, 'save-identity', intval(self::$record['identity_id'] ?? 0), ['name' => '_iid', 'value' => self::$record['identity_id'] ?? 0] ); unset($plugin); unset($attrib['form'], $attrib['id']); // return the complete edit form as table $out = "$form_start\n"; foreach ($form as $fieldset) { if (empty($fieldset['content'])) { continue; } $content = ''; if (is_array($fieldset['content'])) { $table = new html_table(['cols' => 2]); foreach ($fieldset['content'] as $col => $colprop) { $colprop['id'] = 'rcmfd_'.$col; if (!empty($colprop['label'])) { $label = $colprop['label']; } else { $label = $rcmail->gettext(str_replace('-', '', $col)); } if (!empty($colprop['value'])) { $value = $colprop['value']; } else { $val = self::$record[$col] ?? ''; $value = rcube_output::get_edit_field($col, $val, $colprop, $colprop['type']); } $table->add('title', html::label($colprop['id'], rcube::Q($label))); $table->add(null, $value); } $content = $table->show($attrib); } else { $content = $fieldset['content']; } $content = html::tag('legend', null, rcube::Q($fieldset['name'])) . $content; $out .= html::tag('fieldset', !empty($fieldset['attrs']) ? $fieldset['attrs'] : [], $content) . "\n"; } $out .= $form_end; // add image upload form $max_size = self::upload_init($rcmail->config->get('identity_image_size', 64) * 1024); $form_id = 'identityImageUpload'; $out .= ''; $rcmail->output->add_gui_object('uploadform', $form_id); return $out; } }