diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-04 07:58:02 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-04 07:58:02 +0000 |
| commit | 372c24be996033dc022ebc6851b83d861ccc5785 (patch) | |
| tree | 479ca5da2a5a62a15813b277f98a4f15828fda21 | |
| parent | 1993c6d18bd593e9679952f00500afdaaa8cafae (diff) | |
resurrect logout message, fixes #3937
Closes #3937
Merge request studip/studip!2791
| -rw-r--r-- | public/logout.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/public/logout.php b/public/logout.php index e18a858..2f8fcd8 100644 --- a/public/logout.php +++ b/public/logout.php @@ -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')); |
