aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Snap.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-09 10:26:23 +0000
committerMario <mario@mariovavti.com>2024-11-09 10:26:23 +0000
commit14207c68ca451c365b3fe1f8d267409da39f9498 (patch)
tree9806a0d423f3f31aa5e5cb95f323d61267d34e84 /Zotlabs/Module/Snap.php
parent0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2 (diff)
parentac8c80ddbe5414c59a72881684e1079289270f12 (diff)
downloadvolse-hubzilla-14207c68ca451c365b3fe1f8d267409da39f9498.tar.gz
volse-hubzilla-14207c68ca451c365b3fe1f8d267409da39f9498.tar.bz2
volse-hubzilla-14207c68ca451c365b3fe1f8d267409da39f9498.zip
Merge branch 'fix-incorrect-module-imports' into 'dev'
Fix incorrect module imports. See merge request hubzilla/core!2163
Diffstat (limited to 'Zotlabs/Module/Snap.php')
-rw-r--r--Zotlabs/Module/Snap.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/Zotlabs/Module/Snap.php b/Zotlabs/Module/Snap.php
index 89aebc097..770ba07c2 100644
--- a/Zotlabs/Module/Snap.php
+++ b/Zotlabs/Module/Snap.php
@@ -8,8 +8,8 @@ namespace Zotlabs\Module;
* Module for accessing the DAV storage area from a DAV client.
*/
-use \Sabre\DAV as SDAV;
-use \Zotlabs\Storage;
+use Sabre\DAV as SDAV;
+use Zotlabs\Storage;
// composer autoloader for SabreDAV
require_once('vendor/autoload.php');
@@ -24,7 +24,7 @@ require_once('vendor/autoload.php');
class Snap extends \Zotlabs\Web\Controller {
function init() {
-
+
// workaround for HTTP-auth in CGI mode
if (x($_SERVER, 'REDIRECT_REMOTE_USER')) {
$userpass = base64_decode(substr($_SERVER["REDIRECT_REMOTE_USER"], 6)) ;
@@ -43,20 +43,20 @@ class Snap extends \Zotlabs\Web\Controller {
$_SERVER['PHP_AUTH_PW'] = $password;
}
}
-
+
if (! is_dir('store'))
os_mkdir('store', STORAGE_DEFAULT_PERMISSIONS, false);
-
+
$which = null;
if (argc() > 1)
$which = argv(1);
-
+
$profile = 0;
-
+
if($which)
profile_load( $which, $profile);
else
- killme();
+ killme();
if($_SERVER['PHP_AUTH_USER'] && $_SERVER['PHP_AUTH_USER'] !== $which)
killme();
@@ -68,7 +68,7 @@ class Snap extends \Zotlabs\Web\Controller {
}
if(! in_array(strtolower($_SERVER['REQUEST_METHOD']),['propfind','get','head']))
- killme();
+ killme();
$auth = new \Zotlabs\Storage\BasicAuth();
$auth->setRealm(ucfirst(\Zotlabs\Lib\System::get_platform_name()) . 'WebDAV');
@@ -101,5 +101,5 @@ class Snap extends \Zotlabs\Web\Controller {
killme();
}
-
+
}