3 ** signout.php -- cleans up session and logs the user out
5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 ** Cleans up after the user. Resets cookies and terminates
16 if (!isset($strings_php))
17 include('../functions/strings.php');
19 include ('../src/load_prefs.php');
21 if (!isset($config_php))
22 include('../config/config.php');
23 if (!isset($i18n_php))
24 include('../functions/i18n.php');
25 if (!isset($prefs_php))
26 include ('../functions/prefs.php');
27 if (!isset($plugin_php))
28 include ('../functions/plugin.php');
30 set_up_language(getPref($data_dir, $username, 'language'));
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 (! isset($base_uri))
36 ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs);
41 setcookie('username', '', 0, $base_uri);
42 setcookie('key', '', 0, $base_uri);
43 setcookie('logged_in', '', 0, $base_uri);
49 if ($theme_css != '') {
50 printf ('<LINK REL="stylesheet" TYPE="text/css" HREF="%s">',
55 echo "<TITLE>$org_title - Signout</TITLE>\n";
56 echo "</HEAD><BODY TEXT=$color[8] BGCOLOR=$color[4] LINK=$color[7] VLINK=$color[7] ALINK=$color[7]>\n";
57 echo '<BR><BR><TABLE BGCOLOR="FFFFFF" BORDER="0" COLS="1" WIDTH="50%" CELLSPACING="0" CELLPADDING="2" ALIGN="CENTER">';
58 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
59 echo ' <TD ALIGN="CENTER">';
65 echo " <TR BGCOLOR=$color[4] WIDTH=100%>";
66 echo ' <TD ALIGN=CENTER>';
68 echo _("You have been successfully signed out.");
70 echo '<A HREF="login.php" TARGET=_top>';
71 echo _("Click here to log back in.");
75 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
76 echo ' <TD ALIGN="CENTER">;