Check if webfinger is enabled

This commit is contained in:
Lukas Reschke 2012-08-10 10:01:17 +02:00
parent 2c5ab91c7d
commit e73292339f
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
if(class_exists('OC')){
$WEBROOT=OC::$WEBROOT;

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
**/
$userName = '';