| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | +-----------------------------------------------------------------------+ |
|---|
| 5 | | program/steps/settings/identities.inc | |
|---|
| 6 | | | |
|---|
| 7 | | This file is part of the Roundcube Webmail client | |
|---|
| 8 | | Copyright (C) 2005-2007, The Roundcube Dev Team | |
|---|
| 9 | | | |
|---|
| 10 | | Licensed under the GNU General Public License version 3 or | |
|---|
| 11 | | any later version with exceptions for skins & plugins. | |
|---|
| 12 | | See the README file for a full license statement. | |
|---|
| 13 | | | |
|---|
| 14 | | PURPOSE: | |
|---|
| 15 | | Manage identities of a user account | |
|---|
| 16 | | | |
|---|
| 17 | +-----------------------------------------------------------------------+ |
|---|
| 18 | | Author: Thomas Bruederli <roundcube@gmail.com> | |
|---|
| 19 | +-----------------------------------------------------------------------+ |
|---|
| 20 | |
|---|
| 21 | $Id$ |
|---|
| 22 | |
|---|
| 23 | */ |
|---|
| 24 | |
|---|
| 25 | define('IDENTITIES_LEVEL', intval($RCMAIL->config->get('identities_level', 0))); |
|---|
| 26 | |
|---|
| 27 | $OUTPUT->set_pagetitle(rcube_label('identities')); |
|---|
| 28 | $OUTPUT->include_script('list.js'); |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | // similar function as /steps/addressbook/func.inc::rcmail_contact_frame() |
|---|
| 32 | function rcmail_identity_frame($attrib) |
|---|
| 33 | { |
|---|
| 34 | global $OUTPUT; |
|---|
| 35 | |
|---|
| 36 | if (!$attrib['id']) |
|---|
| 37 | $attrib['id'] = 'rcmIdentityFrame'; |
|---|
| 38 | |
|---|
| 39 | $attrib['name'] = $attrib['id']; |
|---|
| 40 | |
|---|
| 41 | $OUTPUT->set_env('contentframe', $attrib['name']); |
|---|
| 42 | |
|---|
| 43 | return html::iframe($attrib); |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | $OUTPUT->add_handler('identityframe', 'rcmail_identity_frame'); |
|---|
| 47 | $OUTPUT->set_env('identities_level', IDENTITIES_LEVEL); |
|---|
| 48 | $OUTPUT->add_label('deleteidentityconfirm'); |
|---|
| 49 | |
|---|
| 50 | $OUTPUT->send('identities'); |
|---|