Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f93be510
Commit
f93be510
authored
13 years ago
by
Michiel de Jong
Browse files
Options
Downloads
Patches
Plain Diff
check activation and make activation impossible by default
parent
d07f3d54
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/user_webfinger/activate.php
+9
-2
9 additions, 2 deletions
apps/user_webfinger/activate.php
apps/user_webfinger/host-meta.php
+5
-1
5 additions, 1 deletion
apps/user_webfinger/host-meta.php
with
14 additions
and
3 deletions
apps/user_webfinger/activate.php
+
9
−
2
View file @
f93be510
<?php
// comment out this line:
die
(
"This feature is still experimental. Please comment out this line in the code, then try again
\n
"
);
//
$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."
;
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
;
"
;
echo
"Please create a file called '.well-known in the ownCloud root, give the web server user permission to change it, and retry
.
\n
"
;
}
This diff is collapsed.
Click to expand it.
apps/user_webfinger/host-meta.php
+
5
−
1
View file @
f93be510
<?php
header
(
"Access-Control-Allow-Origin: *"
);
if
(
$_SERVER
[
'SCRIPT_NAME'
]
==
'/.well-known/host-meta.php'
)
{
header
(
"Access-Control-Allow-Origin: *"
);
}
else
{
header
(
'Please visit /apps/user_webfinger/activate.php first'
);
}
header
(
"Content-Type: application/xml+xrd"
);
echo
"<"
;
?>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment