From 983f6e987b3fe2048b946381df016f1a1ce3a4c0 Mon Sep 17 00:00:00 2001 From: zone Date: Sun, 3 Jun 2001 22:49:02 +0000 Subject: [PATCH] Initial Revision/Weak start --- .../inc/hook_admin_deleteaccount.inc.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 filemanager/inc/hook_admin_deleteaccount.inc.php diff --git a/filemanager/inc/hook_admin_deleteaccount.inc.php b/filemanager/inc/hook_admin_deleteaccount.inc.php new file mode 100755 index 0000000000..43977df430 --- /dev/null +++ b/filemanager/inc/hook_admin_deleteaccount.inc.php @@ -0,0 +1,28 @@ +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)); + } +?>