X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsignout.php;h=6e5fc5183802da03d8a78a2ca074770cc3058ce2;hb=c8bd2d5acd59c8ab335a7c75ded5bf15bda79d4a;hp=794f445dc4b45e455414a31266e1bcba240d9bfb;hpb=525b7ae6ddd3cb500999021bb216d010fade1857;p=squirrelmail.git diff --git a/src/signout.php b/src/signout.php index 794f445d..6e5fc518 100644 --- a/src/signout.php +++ b/src/signout.php @@ -1,84 +1,89 @@ purgeAttachments(); + } +} - if ($signout_page) { - header("Status: 303 See Other"); - header("Location: $signout_page"); - exit; /* we send no content if we're redirecting. */ - } +if (!isset($frame_top)) { + $frame_top = '_top'; +} + +/* If a user hits reload on the last page, $base_uri isn't set + * because it was deleted with the session. */ +if (! sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { + $base_uri = sqm_baseuri(); +} + +do_hook('logout'); + +sqsession_destroy(); + +if ($signout_page) { + header('Status: 303 See Other'); + header("Location: $signout_page"); + exit; /* we send no content if we're redirecting. */ +} + +/* internal gettext functions will fail, if language is not set */ +set_up_language($squirrelmail_language, true, true); +?> + + +
+ - - + - + +- - | -
-
- - - - - |
-
- - |
-