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 543 2007-04-28 18:07:12Z thomasb $
22 if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids))
25 "UPDATE ".get_table_name('identities')."
28 AND identity_id IN (".$ids.")",
29 $_SESSION['user_id']);
31 $count = $DB->affected_rows();
33 $OUTPUT->show_message('deletedsuccessfully', 'confirmation');
36 if ($OUTPUT->ajax_call)
41 if ($OUTPUT->ajax_call)
45 // go to identities page
46 rcmail_overwrite_action('identities');