commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| program/steps/settings/delete_identity.inc | |
|
6 |
| | |
|
7 |
| This file is part of the RoundCube Webmail client | |
f11541
|
8 |
| Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | |
30233b
|
9 |
| Licensed under the GNU GPL | |
4e17e6
|
10 |
| | |
T |
11 |
| PURPOSE: | |
|
12 |
| Delete the submitted identities (IIDs) from the database | |
|
13 |
| | |
|
14 |
+-----------------------------------------------------------------------+ |
|
15 |
| Author: Thomas Bruederli <roundcube@gmail.com> | |
|
16 |
+-----------------------------------------------------------------------+ |
|
17 |
|
|
18 |
$Id$ |
|
19 |
|
|
20 |
*/ |
|
21 |
|
b3ce79
|
22 |
if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids)) |
f11541
|
23 |
{ |
ccd048
|
24 |
if ($USER->delete_identity($ids)) { |
A |
25 |
$OUTPUT->show_message('deletedsuccessfully', 'confirmation'); |
e3a0af
|
26 |
} |
f645ce
|
27 |
else { |
ccd048
|
28 |
$OUTPUT->show_message('nodeletelastidentity', 'error'); |
e3a0af
|
29 |
} |
4e17e6
|
30 |
// send response |
f11541
|
31 |
if ($OUTPUT->ajax_call) |
T |
32 |
$OUTPUT->send(); |
|
33 |
} |
4e17e6
|
34 |
|
T |
35 |
// go to identities page |
f11541
|
36 |
rcmail_overwrite_action('identities'); |
4e17e6
|
37 |
|
ee883a
|
38 |
?> |