source: trunk/preferences/inc/hook_deleteaccount.inc.php @ 2

Revision 2, 1.1 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /**************************************************************************\
3  * phpGroupWare                                                             *
4  * http://www.phpgroupware.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        // Delete all records for a user
15        $table_locks = Array('phpgw_preferences');
16
17        $GLOBALS['phpgw']->db->lock($table_locks);
18        $GLOBALS['phpgw']->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$GLOBALS['HTTP_POST_VARS']['account_id'],__LINE__,__FILE__);
19        $GLOBALS['phpgw']->db->unlock();
20
21
22?>
Note: See TracBrowser for help on using the repository browser.