5 ** signout.php -- cleans up session and logs the user out
7 ** Copyright (c) 1999-2000 The SquirrelMail development team
8 ** Licensed under the GNU GPL. For full terms see the file COPYING.
10 ** Cleans up after the user. Resets cookies and terminates
15 include ("../src/load_prefs.php");
17 if (!isset($i18n_php))
18 include("../functions/i18n.php");
19 if (!isset($prefs_php))
20 include ("../functions/prefs.php");
21 if (!isset($plugin_php))
22 include ("../functions/plugin.php");
24 // Quick Fix for Gettext in LogOut Screen
25 if (!function_exists("_")) {
31 $squirrelmail_language = getPref ($data_dir, $username, "language");
32 if (isset($squirrelmail_language)) {
33 if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
34 putenv("LC_ALL=".$squirrelmail_language);
35 bindtextdomain("squirrelmail", "../locale/");
36 textdomain("squirrelmail");
37 header ("Content-Type: text/html; charset=".$languages[$squirrelmail_language]["CHARSET"]);
39 // Setting cookie to use on the login screen the next time the
41 setcookie("squirrelmail_language", $squirrelmail_language,
48 setcookie("username", "", 0, $base_uri);
49 setcookie("key", "", 0, $base_uri);
50 setcookie("logged_in", "", 0, $base_uri);
55 echo "<BODY TEXT=000000 BGCOLOR=$color[4] LINK=$color[7] VLINK=$color[7] ALINK=$color[7]>\n";
56 echo "<BR><BR><TABLE BGCOLOR=FFFFFF BORDER=0 COLS=1 WIDTH=50% CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>";
57 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
58 echo " <TD ALIGN=CENTER>";
64 echo " <TR BGCOLOR=$color[4] WIDTH=100%>";
65 echo " <TD ALIGN=CENTER>";
67 echo _("You have been successfully signed out.");
69 echo "<A HREF=\"login.php\" TARGET=_top>";
70 echo _("Click here to log back in.");
74 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
75 echo " <TD ALIGN=CENTER>";