Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
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(){
...
@@ -145,22 +145,21 @@ function printNotice(){
$actionURL
=
$_SERVER
[
'SCRIPT_NAME'
]
.
'?'
.
htmlentities
(
$_SERVER
[
'QUERY_STRING'
]);
$actionURL
=
$_SERVER
[
'SCRIPT_NAME'
]
.
'?'
.
htmlentities
(
$_SERVER
[
'QUERY_STRING'
]);
$hiddenUserIdPInput
=
''
;
$hiddenUserIdPInput
=
''
;
$permanentUserIdPName
=
''
;
if
(
if
(
isset
(
$_POST
[
'user_idp'
])
isset
(
$_POST
[
'user_idp'
])
&&
checkIDP
(
$_POST
[
'user_idp'
])
&&
checkIDP
(
$_POST
[
'user_idp'
])
){
){
$hiddenUserIdPInput
=
'<input type="hidden" name="user_idp" value="'
.
$_POST
[
'user_idp'
]
.
'">'
;
$hiddenUserIdPInput
=
'<input type="hidden" name="user_idp" value="'
.
$_POST
[
'user_idp'
]
.
'">'
;
$permanentUserIdPName
=
$IDProviders
[
$_POST
[
'user_idp'
]][
'Name'
];
}
elseif
(
}
elseif
(
isset
(
$_COOKIE
[
$redirectCookieName
])
isset
(
$_COOKIE
[
$redirectCookieName
])
&&
checkIDP
(
$_COOKIE
[
$redirectCookieName
])
&&
checkIDP
(
$_COOKIE
[
$redirectCookieName
])
){
){
$hiddenUserIdPInput
=
'<input type="hidden" name="user_idp" value="'
.
$_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
// Check if footer template exists
if
(
file_exists
(
'custom-notice.php'
)){
if
(
file_exists
(
'custom-notice.php'
)){
include
(
'custom-notice.php'
);
include
(
'custom-notice.php'
);
...
...
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