2011-09-12 02:32:38 +04:00
|
|
|
<?php
|
2011-09-12 16:15:19 +04:00
|
|
|
|
|
|
|
// comment out this line:
|
|
|
|
die("This feature is still experimental. Please comment out this line in the code, then try again\n");
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-12 02:32:38 +04:00
|
|
|
$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');
|
2011-09-12 16:15:19 +04:00
|
|
|
echo "Webfinger should now work.\n";
|
2011-09-12 02:32:38 +04:00
|
|
|
} catch(Exception $e) {
|
2011-09-12 16:15:19 +04:00
|
|
|
echo "Please create a file called '.well-known in the ownCloud root, give the web server user permission to change it, and retry.\n";
|
2011-09-12 02:32:38 +04:00
|
|
|
}
|