X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsignout.php;h=8706ed9656c218a2ab94cb98af894c6b82c75d8a;hb=a42c236f3aecff1b7513cae605de2ecd2f2455dc;hp=413473f3ed21598ce69e3c37520439b308396c3f;hpb=d4e84069d1d9af8760b8e858672d3ea3d4eac8b0;p=squirrelmail.git diff --git a/src/signout.php b/src/signout.php index 413473f3..8706ed96 100644 --- a/src/signout.php +++ b/src/signout.php @@ -1,84 +1,94 @@ 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) ) { + require_once(SM_PATH . 'functions/display_messages.php'); + $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); +?> + + + + - - + - + + <?php echo $org_title . ' - ' . _("Signout"); ?> + + +

' . + _("Click here to log back in.") . '
' , + 'center' ) , + '', $color[4] ) . + html_tag( 'tr', + html_tag( 'td', '
', 'center' ) , + '', $color[0] ) , +'center', $color[4], 'width="50%" cellpadding="2" cellspacing="0" border="0"' ) + ?> -<?php echo $org_title ?> - Signout - - -

- - - - - - - - - - -
- -
-
- - -

-
-
-
- - + +