Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jan-Hendrik Willms
Stud.IP
Commits
372c24be
Commit
372c24be
authored
11 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
resurrect logout message, fixes #3937
Closes #3937 Merge request
studip/studip!2791
parent
1993c6d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/logout.php
+9
-4
9 additions, 4 deletions
public/logout.php
with
9 additions
and
4 deletions
public/logout.php
+
9
−
4
View file @
372c24be
...
...
@@ -30,7 +30,7 @@ page_open(["sess" => "Seminar_Session", "auth" => "Seminar_Default_Auth", "perm"
require_once
'lib/messaging.inc.php'
;
//nur wenn wir angemeldet sind sollten wir dies tun!
if
(
$auth
->
auth
[
"
uid
"
]
!=
"
nobody
"
)
{
if
(
$auth
->
auth
[
'
uid
'
]
!==
'
nobody
'
)
{
$my_messaging_settings
=
$GLOBALS
[
'user'
]
->
cfg
->
MESSAGING_SETTINGS
;
//Wenn Option dafuer gewaehlt, alle ungelsesenen Nachrichten als gelesen speichern
...
...
@@ -38,13 +38,13 @@ if ($auth->auth["uid"]!="nobody") {
Message
::
markAllAs
();
}
$logout_user
=
$user
->
id
;
$logout_user
=
$user
->
id
;
$_language
=
$_SESSION
[
'_language'
];
$contrast
=
UserConfig
::
get
(
$GLOBALS
[
'user'
]
->
id
)
->
USER_HIGH_CONTRAST
;
// TODO this needs to be generalized or removed
//erweiterung cas
if
(
$auth
->
auth
[
"
auth_plugin
"
]
==
"
cas
"
)
{
if
(
$auth
->
auth
[
'
auth_plugin
'
]
==
=
'
cas
'
)
{
$casauth
=
StudipAuthAbstract
::
GetInstance
(
'cas'
);
$docaslogout
=
true
;
}
...
...
@@ -67,9 +67,14 @@ if ($auth->auth["uid"]!="nobody") {
if
(
$contrast
)
{
$_SESSION
[
'contrast'
]
=
$contrast
;
}
PageLayout
::
postSuccess
(
_
(
'Sie sind nun aus dem System abgemeldet.'
),
array_filter
([
$GLOBALS
[
'UNI_LOGOUT_ADD'
]])
);
}
else
{
$sess
->
delete
();
page_close
();
}
header
(
"
Location:
"
.
URLHelper
::
getURL
(
"
index.php
?logout=true"
));
header
(
'
Location:
'
.
URLHelper
::
getURL
(
'
index.php
'
));
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