X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsignout.php;h=82712e1bf517065f0fecfa0457cb308640898717;hb=5c4ff7bfc6e04337bd6bcf76743b1fbb92556233;hp=68ef0ce1bf1dc3375a5a7d995c9eb0b41ca53794;hpb=5c263f271f52ac690c0afc762b5af700b44296ee;p=squirrelmail.git diff --git a/src/signout.php b/src/signout.php index 68ef0ce1..82712e1b 100644 --- a/src/signout.php +++ b/src/signout.php @@ -1,87 +1,96 @@ purgeAttachments(); + } +} - do_hook('logout'); - setcookie('username', '', 0, $base_uri); - setcookie('key', '', 0, $base_uri); - setcookie('logged_in', '', 0, $base_uri); - session_destroy(); +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 - - -

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

-
-
-
- - + + <?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"' ) + +$oTemplate->display('footer.tpl'); +?> \ No newline at end of file