4 +-----------------------------------------------------------------------+
5 | program/steps/settings/delete_identity.inc |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Delete the submitted identities (IIDs) from the database |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: delete_identity.inc 2008 2008-10-24 08:30:52Z alec $
22 if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids))
24 if ($USER->delete_identity($ids)) {
25 $OUTPUT->show_message('deletedsuccessfully', 'confirmation');
28 $OUTPUT->show_message('nodeletelastidentity', 'error');
31 if ($OUTPUT->ajax_call)
35 if ($OUTPUT->ajax_call)
38 // go to identities page
39 rcmail_overwrite_action('identities');