openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5437c07e5cba325da0cba43b8d208e161626b036
parent 0843a1e465b11785eb2341f3379f6f043f3d917a
Author: dankert <devnull@localhost>
Date:   Thu, 17 Dec 2009 01:39:36 +0100

Seiten als HTML anzeigen

Diffstat:
actionClasses/WebdavAction.class.php | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/actionClasses/WebdavAction.class.php b/actionClasses/WebdavAction.class.php @@ -347,14 +347,15 @@ class WebdavAction extends Action $this->getDirectory(); elseif( $this->obj->isPage ) { - $this->httpStatus( '403 Forbidden' ); - return; $this->httpStatus( '200 OK' ); header('Content-Type: text/html'); + + $page = new Page( $this->obj->objectid ); + $page->load(); echo '<html><head><title>OpenRat WEBDAV Access</title></head>'; echo '<body>'; - echo '<h1>Page</h1>'; + echo '<h1>'.$page->full_filename().'</h1>'; echo '<pre>'; echo 'No Content available'; echo '</pre>'; @@ -369,7 +370,7 @@ class WebdavAction extends Action $link = new Link( $this->obj->objectid ); $link->load(); - echo 'url: '.$link->url."\n"; + echo 'url: ' .$link->url ."\n"; echo 'target-id: '.$link->linkedObjectId."\n"; } elseif( $this->obj->isFile )