- updated header to be processed by phpDocumentor

- fixed bug in delete pointed out by Steven Hammer
This commit is contained in:
Ralf Becker 2006-05-28 02:39:39 +00:00
parent cfabc10f12
commit 6ccca34f85

View File

@ -1,16 +1,16 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - FileManger - WebDAV access * * FileManger - WebDAV access
* http://www.egroupware.org * *
* Written and (c) 2006 by Ralf Becker <RalfBecker-AT-outdoor-training.de> * * Using the PEAR HTTP/WebDAV/Server class (which need to be installed!)
* ------------------------------------------------------------------------ * *
* This program is free software; you can redistribute it and/or modify it * * @link http://www.egroupware.org
* under the terms of the GNU General Public License as published by the * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* Free Software Foundation; either version 2 of the License, or (at your * * @package filemanger
* option) any later version. * * @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
\**************************************************************************/ * @copyright (c) 2006 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @version $Id: class.boetemplate.inc.php 21437 2006-04-24 20:42:42Z ralfbecker $
/* $Id: class.socontacts_sql.inc.php 21634 2006-05-24 02:28:57Z ralfbecker $ */ */
require_once('HTTP/WebDAV/Server.php'); require_once('HTTP/WebDAV/Server.php');
@ -252,16 +252,14 @@ class vfs_webdav_server extends HTTP_WebDAV_Server
'string' => dirname($GLOBALS['egw']->translation->convert($options['path'],'utf-8')), 'string' => dirname($GLOBALS['egw']->translation->convert($options['path'],'utf-8')),
'relatives' => array(RELATIVE_ROOT), // filename is relative to the vfs-root 'relatives' => array(RELATIVE_ROOT), // filename is relative to the vfs-root
); );
if (!$this->vfs->file_exists($path)) if (!$this->vfs->file_exists($vfs_data))
{ {
return '404 Not found'; return '404 Not found';
} }
$vfs_data = array( if (!$this->vfs->rm($vfs_data))
'string' => $GLOBALS['egw']->translation->convert($options['path'],'utf-8'), {
'relatives' => array(RELATIVE_ROOT), // filename is relative to the vfs-root return '403 Forbidden';
); }
$this->vfs->rm($vfs_data);
return '204 No Content'; return '204 No Content';
} }