mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Initial Revision/Weak start
This commit is contained in:
parent
3e20192a97
commit
983f6e987b
28
filemanager/inc/hook_admin_deleteaccount.inc.php
Executable file
28
filemanager/inc/hook_admin_deleteaccount.inc.php
Executable file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* 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$ */
|
||||
|
||||
global $phpgw;
|
||||
global $account_id;
|
||||
|
||||
echo "HERE!!!";
|
||||
|
||||
/* NOTE: This is untested */
|
||||
/* WIP: it should get all files owned by $account_id, not just in /home/account_id */
|
||||
/* Should also be capable of transfering files to another user */
|
||||
|
||||
$phpgw->vfs->working_id = $account_id;
|
||||
$ls_array = $phpgw->vfs->ls ($phpgw->vfs->fakebase . "/" . $account_id, array (RELATIVE_NONE));
|
||||
while (list ($num, $entry) = each ($ls_array))
|
||||
{
|
||||
$phpgw->vfs->rm ($entry["dir"] . "/" . $entry["name"], array (RELATIVE_NONE));
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user