mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 11:35:21 +00:00
17 lines
275 B
PHP
17 lines
275 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
class Logout extends \Zotlabs\Web\Controller {
|
|
|
|
function init() {
|
|
if($_SESSION['delegate'] && $_SESSION['delegate_push']) {
|
|
$_SESSION = $_SESSION['delegate_push'];
|
|
}
|
|
else {
|
|
\App::$session->nuke();
|
|
}
|
|
goaway(z_root());
|
|
|
|
}
|
|
}
|