Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
myframa
Commits
5314149c
Commit
5314149c
authored
Sep 23, 2016
by
JosephK
Browse files
[recovery] mail url
parent
5680bd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
shaarli/plugins/recovery/recovery.php
View file @
5314149c
...
...
@@ -17,7 +17,7 @@ function hook_recovery_render_header($data)
unset
(
$_SESSION
[
'tokens'
][
$_POST
[
'token'
]]);
$ShaarliURL
=
(
isset
(
$_SERVER
[
'HTTPS'
])
?
'https'
:
'http'
)
.
'://'
.
$_SERVER
[
'HTTP_HOST'
]
.
dirname
(
strtok
(
$_SERVER
[
'
REQUEST_URI'
],
'?'
));
$ShaarliURL
=
(
isset
(
$_SERVER
[
'HTTPS'
])
?
'https'
:
'http'
)
.
'://'
.
$_SERVER
[
'HTTP_HOST'
]
.
str_replace
(
$_SERVER
[
'DOCUMENT_ROOT'
],
''
,
dirname
(
$_SERVER
[
'
SCRIPT_FILENAME'
])
));
$c
=
$GLOBALS
;
if
(
$GLOBALS
[
'config'
][
'RECOVERY'
][
'attempt'
]
>=
10
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment