diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /public/logout.php | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'public/logout.php')
| -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')); |
