source: sandbox/2.3-MailArchiver/admin/inc/hook_deleteaccount.inc.php @ 6779

Revision 6779, 1.1 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare                                                               *
4  * http://www.egroupware.org                                                *
5  * Written by Mark Peters <skeeter@phpgroupware.org>                        *
6  * --------------------------------------------                             *
7  *  This program is free software; you can redistribute it and/or modify it *
8  *  under the terms of the GNU General Public License as published by the   *
9  *  Free Software Foundation; either version 2 of the License, or (at your  *
10  *  option) any later version.                                              *
11  \**************************************************************************/
12
13
14        if($_POST['account_id'])
15        {
16                $GLOBALS['phpgw']->accounts->delete($_POST['account_id']);
17                $GLOBALS['phpgw']->db->lock(Array('phpgw_acl'));
18                $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_acl WHERE acl_location='" . $_POST['account_id']
19                        . "' OR acl_account=".$_POST['account_id'],__LINE__,__FILE__);
20                $GLOBALS['phpgw']->db->unlock();
21        }
22?>
Note: See TracBrowser for help on using the repository browser.