2001-06-04 00:49:02 +02:00
|
|
|
<?php
|
2005-10-14 12:41:15 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* eGroupWare *
|
|
|
|
* http://www.egroupware.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. *
|
|
|
|
\**************************************************************************/
|
2001-06-04 00:49:02 +02:00
|
|
|
/* $Id$ */
|
2001-09-04 06:58:12 +02:00
|
|
|
/*
|
2005-10-14 12:41:15 +02:00
|
|
|
|
2001-06-04 00:49:02 +02:00
|
|
|
global $account_id;
|
2001-09-04 06:58:12 +02:00
|
|
|
*/
|
2001-06-04 00:49:02 +02:00
|
|
|
/* 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 */
|
|
|
|
|
2001-07-02 23:18:03 +02:00
|
|
|
/*
|
2005-10-14 12:41:15 +02:00
|
|
|
$GLOBALS['egw']->vfs->working_id = $account_id;
|
|
|
|
$ls_array = $GLOBALS['egw']->vfs->ls ($GLOBALS['egw']->vfs->fakebase . "/" . $account_id, array (RELATIVE_NONE));
|
2001-06-04 00:49:02 +02:00
|
|
|
while (list ($num, $entry) = each ($ls_array))
|
|
|
|
{
|
2005-10-14 12:41:15 +02:00
|
|
|
$GLOBALS['egw']->vfs->rm ($entry["dir"] . "/" . $entry["name"], array (RELATIVE_NONE));
|
2001-06-04 00:49:02 +02:00
|
|
|
}
|
2001-07-02 23:18:03 +02:00
|
|
|
*/
|
2001-06-04 00:49:02 +02:00
|
|
|
?>
|