Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
1b935a22
Commit
1b935a22
authored
12 years ago
by
Georg Ehrke
Browse files
Options
Downloads
Patches
Plain Diff
add old webdav file
parent
f7fb4a54
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/webdav.php
+52
-0
52 additions, 0 deletions
files/webdav.php
with
52 additions
and
0 deletions
files/webdav.php
0 → 100644
+
52
−
0
View file @
1b935a22
<?php
/**
* ownCloud
*
* @author Frank Karlitschek
* @author Jakob Sack
* @copyright 2010 Frank Karlitschek karlitschek@kde.org
* @copyright 2011 Jakob Sack kde@jakobsack.de
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
// Do not load FS ...
$RUNTIME_NOSETUPFS
=
true
;
require_once
(
'../lib/base.php'
);
// only need filesystem apps
$RUNTIME_APPTYPES
=
array
(
'filesystem'
,
'authentication'
);
// Backends
$authBackend
=
new
OC_Connector_Sabre_Auth
();
$lockBackend
=
new
OC_Connector_Sabre_Locks
();
// Create ownCloud Dir
$publicDir
=
new
OC_Connector_Sabre_Directory
(
''
);
// Fire up server
$server
=
new
Sabre_DAV_Server
(
$publicDir
);
$server
->
setBaseUri
(
OC
::
$WEBROOT
.
'/files/webdav.php'
);
// Load plugins
$server
->
addPlugin
(
new
Sabre_DAV_Auth_Plugin
(
$authBackend
,
'ownCloud'
));
$server
->
addPlugin
(
new
Sabre_DAV_Locks_Plugin
(
$lockBackend
));
$server
->
addPlugin
(
new
Sabre_DAV_Browser_Plugin
(
false
));
// Show something in the Browser, but no upload
// And off we go!
$server
->
exec
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment