84e693d073732b1fda7f976cbe116dc473db6851
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($config_php))
18 include("../config/config.php");
19 if (!isset($i18n_php))
20 include("../functions/i18n.php");
21 if (!isset($prefs_php))
22 include ("../functions/prefs.php");
23 if (!isset($plugin_php))
24 include ("../functions/plugin.php");
26 // Quick Fix for Gettext in LogOut Screen
27 if (!function_exists("_")) {
33 $squirrelmail_language = getPref ($data_dir, $username, "language");
34 if (isset($squirrelmail_language)) {
35 if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
36 putenv("LC_ALL=".$squirrelmail_language);
37 bindtextdomain("squirrelmail", "../locale/");
38 textdomain("squirrelmail");
39 header ("Content-Type: text/html; charset=".$languages[$squirrelmail_language]["CHARSET"]);
41 // Setting cookie to use on the login screen the next time the
43 setcookie("squirrelmail_language", $squirrelmail_language,
50 setcookie("username", "", 0, $base_uri);
51 setcookie("key", "", 0, $base_uri);
52 setcookie("logged_in", "", 0, $base_uri);
58 if ($theme_css != "") {
59 printf ('<LINK REL="stylesheet" TYPE="text/css" HREF="%s">',
63 echo "<TITLE>$title - Signout</TITLE>\n";
64 echo "</HEAD><BODY TEXT=$color[8] BGCOLOR=$color[4] LINK=$color[7] VLINK=$color[7] ALINK=$color[7]>\n";
65 echo "<BR><BR><TABLE BGCOLOR=FFFFFF BORDER=0 COLS=1 WIDTH=50% CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>";
66 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
67 echo " <TD ALIGN=CENTER>";
73 echo " <TR BGCOLOR=$color[4] WIDTH=100%>";
74 echo " <TD ALIGN=CENTER>";
76 echo _("You have been successfully signed out.");
78 echo "<A HREF=\"login.php\" TARGET=_top>";
79 echo _("Click here to log back in.");
83 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
84 echo " <TD ALIGN=CENTER>";