phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] preferences/inc hook_deleteaccount.inc.php, 1.1.2.2.2


From: skwashd
Subject: [Phpgroupware-cvs] preferences/inc hook_deleteaccount.inc.php, 1.1.2.2.2.1
Date: Sun, 4 Dec 2005 05:45:00 +0100

Update of preferences/inc

Modified Files:
     Branch: Version-0_9_16-branch
            hook_deleteaccount.inc.php lines: +2 -2

Log Message:
globals and php5 - fixes bug #13789

====================================================
Index: preferences/inc/hook_deleteaccount.inc.php
diff -u /dev/null preferences/inc/hook_deleteaccount.inc.php:1.1.2.2.2.1
--- /dev/null   Sun Dec  4 05:30:20 2005
+++ preferences/inc/hook_deleteaccount.inc.php  Sun Dec  4 04:45:02 2005
@@ -0,0 +1,23 @@
+<?php
+  /**************************************************************************\
+  * phpGroupWare                                                             *
+  * http://www.phpgroupware.org                                              *
+  * Written by Mark Peters <address@hidden>                        *
+  * --------------------------------------------                             *
+  *  This program is free software; you can redistribute it and/or modify it *
+  *  under the terms of the GNU General Public License as published by the   *
+  *  Free Software Foundation; either version 2 of the License, or (at your  *
+  *  option) any later version.                                              *
+  \**************************************************************************/
+
+  /* $Id$ */
+
+       // Delete all records for a user
+       $table_locks = Array('phpgw_preferences');
+
+       $GLOBALS['phpgw']->db->lock($table_locks);
+       $GLOBALS['phpgw']->db->query('DELETE FROM phpgw_preferences WHERE 
preference_owner = '. intval($_POST['account_id']), __LINE__, __FILE__);
+       $GLOBALS['phpgw']->db->unlock();
+
+
+?>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]