X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fsignout.php;h=6e5fc5183802da03d8a78a2ca074770cc3058ce2;hp=94abb2427293184222b3f30a00990d7dfe32c476;hb=bfb5513495378807720cf253c2f10b362abe14b5;hpb=b581fa60e6c1903b10e28174a99b26ddab6db8bc diff --git a/src/signout.php b/src/signout.php index 94abb242..6e5fc518 100644 --- a/src/signout.php +++ b/src/signout.php @@ -1,49 +1,89 @@ - - /** - ** signout.php - ** - ** Clears the cookie, and logs them out. - ** - **/ - - $username = ""; - $key = ""; - $logged_in = 0; - - setcookie("username", "", time(), "/"); - setcookie("key", "", time(), "/"); - setcookie("logged_in", 0, time(), "/"); +purgeAttachments(); + } +} + +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); +?> + + +
+ - - - echo "\n"; - echo ""; - echo " "; - echo _("Sign Out"); - echo ""; - echo " | "; - echo "
";
- echo " "; - echo _("You have been successfully signed out."); - echo " "; - echo " "; - echo _("Click here to "); - echo ""; - echo _("log back in."); - echo " "; - echo " | ";
- echo "
";
- echo " "; - echo " | ";
- echo "