Check if webfinger is enabled

This commit is contained in:
Lukas Reschke 2012-08-10 16:38:32 +02:00 committed by Jörn Friedrich Dreyer
parent ffb55d5a17
commit 78e8cbd52c
2 changed files with 9 additions and 1 deletions

View file

@ -1,4 +1,8 @@
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
$hostMetaHeader = array(
'Access-Control-Allow-Origin' => '*',
'Content-Type' => 'application/xrd+json'

View file

@ -1,4 +1,8 @@
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/xrd+json");
@ -15,7 +19,7 @@ header("Content-Type: application/xrd+json");
* href="<?php echo WF_BASEURL; ?>/apps/myApp/profile.php?user=<?php echo WF_USER; ?>">
* </Link>
*
'* but can also use complex database queries to generate the webfinger result
* but can also use complex database queries to generate the webfinger result
**/
// calculate the documentroot
// modified version of the one in lib/base.php that takes the .well-known symlink into account