'filemanager', 'noheader' => True, 'nonavbar' => True, 'nofooter' => True, 'noappheader' => True, 'enable_browser_class' => True ); include_once("../../header.inc.php"); $bo = CreateObject('filemanager.bofilemanager'); foreach ($files as $f) { if ($bo->vfs->cp(array( 'from'=> $f['fullName'], 'to'=> $f['name'], 'relatives' => array(RELATIVE_NONE|VFS_REAL, RELATIVE_ALL) ))) { $bo->vfs->set_attributes(array( 'string'=> $f['name'], 'relatives' => array(RELATIVE_ALL), 'attributes'=> array( 'mime_type' => $f['mimetype'] ) )); exec("rm -f ".escapeshellcmd(escapeshellarg($f['fullName']))); } } echo ""; ?>