commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| program/steps/settings/identities.inc | |
|
6 |
| | |
e019f2
|
7 |
| This file is part of the Roundcube Webmail client | |
f5e7b3
|
8 |
| Copyright (C) 2005-2007, The Roundcube Dev Team | |
7fe381
|
9 |
| | |
T |
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. | |
4e17e6
|
13 |
| | |
T |
14 |
| PURPOSE: | |
|
15 |
| Manage identities of a user account | |
|
16 |
| | |
|
17 |
+-----------------------------------------------------------------------+ |
|
18 |
| Author: Thomas Bruederli <roundcube@gmail.com> | |
|
19 |
+-----------------------------------------------------------------------+ |
|
20 |
*/ |
|
21 |
|
ec0171
|
22 |
define('IDENTITIES_LEVEL', intval($RCMAIL->config->get('identities_level', 0))); |
A |
23 |
|
6b2b2e
|
24 |
$OUTPUT->set_pagetitle($RCMAIL->gettext('identities')); |
6b47de
|
25 |
$OUTPUT->include_script('list.js'); |
4e17e6
|
26 |
|
T |
27 |
|
|
28 |
// similar function as /steps/addressbook/func.inc::rcmail_contact_frame() |
|
29 |
function rcmail_identity_frame($attrib) |
|
30 |
{ |
f11541
|
31 |
global $OUTPUT; |
4e17e6
|
32 |
|
T |
33 |
if (!$attrib['id']) |
|
34 |
$attrib['id'] = 'rcmIdentityFrame'; |
|
35 |
|
28de39
|
36 |
return $OUTPUT->frame($attrib, true); |
4e17e6
|
37 |
} |
T |
38 |
|
f11541
|
39 |
$OUTPUT->add_handler('identityframe', 'rcmail_identity_frame'); |
ec0171
|
40 |
$OUTPUT->set_env('identities_level', IDENTITIES_LEVEL); |
7c2a93
|
41 |
$OUTPUT->add_label('deleteidentityconfirm'); |
4e17e6
|
42 |
|
47124c
|
43 |
$OUTPUT->send('identities'); |