| | |
| | | $OUTPUT->include_script('list.js'); |
| | | $OUTPUT->add_handler('identityform', 'rcube_identity_form'); |
| | | $OUTPUT->set_env('identities_level', IDENTITIES_LEVEL); |
| | | $OUTPUT->add_label('deleteidentityconfirm'); |
| | | $OUTPUT->add_label('deleteidentityconfirm', 'uploading'); |
| | | |
| | | $OUTPUT->set_pagetitle($RCMAIL->gettext(($RCMAIL->action == 'add-identity' ? 'addidentity' : 'editidentity'))); |
| | | |
| | |
| | | $IDENTITY_RECORD['signature'] = htmlspecialchars($IDENTITY_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; |