Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Digital Experience Group
PlanetRed
Commits
b182d887
Commit
b182d887
authored
15 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
small formatting change
parent
8a73760b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/cas_auth_unl/actions/logout.php
+27
-31
27 additions, 31 deletions
plugins/cas_auth_unl/actions/logout.php
with
27 additions
and
31 deletions
plugins/cas_auth_unl/actions/logout.php
+
27
−
31
View file @
b182d887
<?php
/**
* Elgg logout action for use with UNL CAS
*
* @package Elgg
* @subpackage Core
* @overwritten cas_auth_unl/actions/logout.php
* @author Curverider Ltd
* @link http://elgg.org/
*/
/**
* Elgg logout action for use with UNL CAS
*
* @package Elgg
* @subpackage Core
* @overwritten cas_auth_unl/actions/logout.php
* @author Curverider Ltd
* @link http://elgg.org/
*/
// Save this session value since the next step wipes it out
$loggedInWithCas
=
$_SESSION
[
'loggedInWithCas'
];
// Save this session value since the next step wipes it out
$loggedInWithCas
=
$_SESSION
[
'loggedInWithCas'
];
// Log out
$result
=
logout
();
// Log out
$result
=
logout
();
// Set the system_message as appropriate
if
(
$result
)
{
system_message
(
elgg_echo
(
'logoutok'
));
}
else
{
register_error
(
elgg_echo
(
'logouterror'
));
}
// Set the system_message as appropriate
if
(
$result
)
{
system_message
(
elgg_echo
(
'logoutok'
));
}
else
{
register_error
(
elgg_echo
(
'logouterror'
));
}
// We've destoyed all the Elgg session data, now do CAS logout if neccessary
// Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
// the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout
// was doing anyway.
if
(
$loggedInWithCas
)
{
global
$CONFIG
;
forward
(
'https://login.unl.edu/cas/logout?url='
.
$CONFIG
->
url
);
}
?>
\ No newline at end of file
// We've destoyed all the Elgg session data, now do CAS logout if neccessary
// Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
// the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout
// was doing anyway.
if
(
$loggedInWithCas
)
{
global
$CONFIG
;
forward
(
'https://login.unl.edu/cas/logout?url='
.
$CONFIG
->
url
);
}
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