]> source.dussan.org Git - nextcloud-server.git/commitdiff
use install.php properly
authorMichiel@unhosted <michiel@unhosted.org>
Sun, 9 Oct 2011 15:12:16 +0000 (17:12 +0200)
committerMichiel@unhosted <michiel@unhosted.org>
Sun, 9 Oct 2011 15:12:16 +0000 (17:12 +0200)
apps/remoteStorage/compat.php
apps/user_webfinger/activate.php [deleted file]
apps/user_webfinger/appinfo/install.php [new file with mode: 0644]

index d383e8795102fbae55012a912230525ff39a6a94..35a133c43c705e7bfb777444895d4d3dbf5b6bf1 100644 (file)
@@ -44,7 +44,7 @@ if(isset($_SERVER['HTTP_ORIGIN'])) {
        header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
        header('Access-Control-Max-Age: 3600');
        header('Access-Control-Allow-Methods: OPTIONS, GET, PUT, DELETE, PROPFIND');
-       header('Access-Control-Allow-Headers: Authorization');
+       header('Access-Control-Allow-Headers: Authorization, Content-Type');
 } else {
        header('Access-Control-Allow-Origin: *');
 }
diff --git a/apps/user_webfinger/activate.php b/apps/user_webfinger/activate.php
deleted file mode 100644 (file)
index 5025723..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-$ownCloudBaseUri = substr($_SERVER['REQUEST_URI'],0, -(strlen('/apps/user_webfinger/activate.php')));
-$thisAppDir = __DIR__;
-$appsDir = dirname($thisAppDir);
-$ownCloudDir = dirname($appsDir);
-try{
-       symlink($thisAppDir, $ownCloudDir.'/.well-known');
-       echo "Webfinger should now work.\n";
-} catch(Exception $e) {
-       echo "Please create a file called '.well-known in the ownCloud root, give the web server user permission to change it, and retry.\n";
-}
diff --git a/apps/user_webfinger/appinfo/install.php b/apps/user_webfinger/appinfo/install.php
new file mode 100644 (file)
index 0000000..d23ba53
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+$thisAppDir = __DIR__;
+$appsDir = dirname($thisAppDir);
+$ownCloudDir = dirname($appsDir);
+symlink($thisAppDir, $ownCloudDir.'/.well-known');