4 * signout.php -- cleans up session and logs the user out
6 * Cleans up after the user. Resets cookies and terminates session.
8 * @copyright © 1999-2006 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @package squirrelmail
15 * Include the SquirrelMail initialization file.
17 require('../include/init.php');
19 /* Erase any lingering attachments */
20 sqgetGlobalVar('compose_messages', $compose_messages, SQ_SESSION
);
22 if (!empty($compose_message) && is_array($compose_messages)) {
23 foreach($compose_messages as $composeMessage) {
24 $composeMessage->purgeAttachments();
28 if (!isset($frame_top)) {
32 /* If a user hits reload on the last page, $base_uri isn't set
33 * because it was deleted with the session. */
34 if (! sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION
) ) {
35 $base_uri = sqm_baseuri();
43 header('Status: 303 See Other');
44 header("Location: $signout_page");
45 exit; /* we send no content if we're redirecting. */
48 /* internal gettext functions will fail, if language is not set */
49 set_up_language($squirrelmail_language, true, true);
51 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
52 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
56 if ($theme_css != '') {
58 <link rel
="stylesheet" type
="text/css" href
="<?php echo $theme_css; ?>" />
62 <meta name
="robots" content
="noindex,nofollow">
63 <title
><?php
echo $org_title . ' - ' . _("Signout"); ?
></title
>
65 <body text
="<?php echo $color[8]; ?>" bgcolor
="<?php echo $color[4]; ?>"
66 link
="<?php echo $color[7]; ?>" vlink
="<?php echo $color[7]; ?>"
67 alink
="<?php echo $color[7]; ?>">
70 $plugin_message = concat_hook_function('logout_above_text');
74 html_tag( 'th', _("Sign Out"), 'center' ) ,
78 html_tag( 'td', _("You have been successfully signed out.") .
79 '<br /><a href="login.php" target="' . $frame_top . '">' .
80 _("Click here to log back in.") . '</a><br />' ,
84 html_tag( 'td', '<br />', 'center' ) ,
86 'center', $color[4], 'width="50%" cellpadding="2" cellspacing="0" border="0"' );
88 $oTemplate->display('footer.tpl');