2219f6af87ecc1549713bfee6af3fb316c662c08
7 ** Clears the cookie, and logs them out.
11 include ("../src/load_prefs.php");
13 if (!isset($i18n_php))
14 include("../functions/i18n.php");
15 if (!isset($prefs_php))
16 include ("../functions/prefs.php");
18 // Quick Fix for Gettext in LogOut Screen
19 if (!function_exists("_")) {
25 $squirrelmail_language = getPref ($data_dir, $username, "language");
26 if (isset($squirrelmail_language)) {
27 if ($squirrelmail_language != "en" && $squirrelmail_language != "") {
28 putenv("LC_ALL=".$squirrelmail_language);
29 bindtextdomain("squirrelmail", "../locale/");
30 textdomain("squirrelmail");
31 header ("Content-Type: text/html; charset=".$languages[$squirrelmail_language]["CHARSET"]);
33 // Setting cookie to use on the login screen the next time the
35 setcookie("squirrelmail_language", $squirrelmail_language,
41 setcookie("username", "", time(), "/");
42 setcookie("key", "", time(), "/");
43 setcookie("logged_in", 0, time(), "/");
48 echo "<BODY TEXT=000000 BGCOLOR=$color[4] LINK=$color[7] VLINK=$color[7] ALINK=$color[7]>\n";
49 echo "<BR><BR><TABLE BGCOLOR=FFFFFF BORDER=0 COLS=1 WIDTH=50% CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>";
50 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
51 echo " <TD ALIGN=CENTER>";
57 echo " <TR BGCOLOR=$color[4] WIDTH=100%>";
58 echo " <TD ALIGN=CENTER>";
60 echo _("You have been successfully signed out.");
62 echo "<A HREF=\"login.php\" TARGET=_top>";
63 echo _("Click here to log back in.");
67 echo " <TR BGCOLOR=$color[0] WIDTH=100%>";
68 echo " <TD ALIGN=CENTER>";