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
a1917246
Commit
a1917246
authored
Sep 23, 2016
by
JosephK
Browse files
[recovery] fix bookmarklet
parent
6b859022
Changes
1
Hide whitespace changes
Inline
Side-by-side
shaarli/plugins/recovery/recovery.php
View file @
a1917246
...
...
@@ -17,7 +17,7 @@ function hook_recovery_render_header($data)
unset
(
$_SESSION
[
'tokens'
][
$_POST
[
'token'
]]);
$ShaarliURL
=
(
isset
(
$_SERVER
[
'HTTPS'
])
?
'https'
:
'http'
)
.
'://'
.
$_SERVER
[
'HTTP_HOST'
]
.
str_replace
(
$_SERVER
[
'DOCUMENT_ROOT'
],
''
,
dirname
(
$_SERVER
[
'SCRIPT_FILENAME'
]));
$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
)
{
...
...
@@ -116,7 +116,8 @@ function hook_recovery_render_header($data)
}
}
$data
[
'login'
]
.
=
'</div></div>
<div id="rForm" style="display:none;"><form method="POST" class="col-md-6 col-md-offset-3 ombre clearfix" action="?do=login&recover" name="recoverform" id="recoverform">
<div id="rForm" style="display:none;"><form method="POST" class="col-md-6 col-md-offset-3 ombre clearfix" action="?do=login&recover'
.
((
isset
(
$_GET
[
'source'
])
&&
$_GET
[
'source'
]
==
'bookmarklet'
)
?
'&source=bookmarklet'
:
''
)
.
'" name="recoverform" id="recoverform">
<input type="hidden" name="token" value="'
.
getToken
()
.
'">
<h2>'
.
t
(
'Password recovery'
)
.
'</h2>
<div class="form-group">
...
...
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