Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
GIP RENATER
switch-wayf
Commits
fa9cc744
Commit
fa9cc744
authored
Sep 03, 2010
by
haemmer
Browse files
Fixed #264
parent
4c16e1f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates.php
View file @
fa9cc744
...
...
@@ -145,22 +145,21 @@ function printNotice(){
$actionURL
=
$_SERVER
[
'SCRIPT_NAME'
]
.
'?'
.
htmlentities
(
$_SERVER
[
'QUERY_STRING'
]);
$hiddenUserIdPInput
=
''
;
$permanentUserIdPName
=
''
;
if
(
isset
(
$_POST
[
'user_idp'
])
&&
checkIDP
(
$_POST
[
'user_idp'
])
){
$hiddenUserIdPInput
=
'<input type="hidden" name="user_idp" value="'
.
$_POST
[
'user_idp'
]
.
'">'
;
$permanentUserIdPName
=
$IDProviders
[
$_POST
[
'user_idp'
]][
'Name'
];
}
elseif
(
isset
(
$_COOKIE
[
$redirectCookieName
])
&&
checkIDP
(
$_COOKIE
[
$redirectCookieName
])
){
$hiddenUserIdPInput
=
'<input type="hidden" name="user_idp" value="'
.
$_COOKIE
[
$redirectCookieName
]
.
'">'
;
$permanentUserIdPName
=
$IDProviders
[
$_COOKIE
[
$redirectCookieName
]][
'Name'
];
}
$permanentUserIdPName
=
(
isset
(
$_COOKIE
[
$redirectCookieName
]))
?
$IDProviders
[
$_COOKIE
[
$redirectCookieName
]][
'Name'
]
:
$IDProviders
[
$_POST
[
'user_idp'
]][
'Name'
];
// Check if footer template exists
if
(
file_exists
(
'custom-notice.php'
)){
include
(
'custom-notice.php'
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment