updated changelog, todo
[squirrelmail.git] / src / signout.php
CommitLineData
21c3249f 1<?
2 /**
a09387f4 3 ** signout.php
21c3249f 4 **
5 ** Clears the cookie, and logs them out.
6 **
7 **/
8
9 $username = "";
10 $key = "";
11 $logged_in = 0;
288491a4 12
13 // $squirrelmail_language is set by a cookie when the user
14 // selects language
15 if (isset($squirrelmail_language)) {
16 if ($squirrelmail_language != "en") {
17 putenv("LANG=".$squirrelmail_language);
18 bindtextdomain("squirrelmail", "../locale/");
19 textdomain("squirrelmail");
20 }
21 }
21c3249f 22
23 setcookie("username", "", time(), "/");
24 setcookie("key", "", time(), "/");
25 setcookie("logged_in", 0, time(), "/");
26?>
27<HTML>
21c3249f 28<?
175e7218 29 echo "<BODY TEXT=000000 BGCOLOR=#FFFFFF LINK=0000CC VLINK=0000CC ALINK=0000CC>\n";
30 echo "<BR><BR><TABLE BGCOLOR=#FFFFFF BORDER=0 COLS=1 WIDTH=50% CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>";
31 echo " <TR BGCOLOR=#DCDCDC WIDTH=100%>";
21c3249f 32 echo " <TD ALIGN=CENTER>";
aae41ae9 33 echo " <B>";
b581fa60 34 echo _("Sign Out");
aae41ae9 35 echo "</B>";
21c3249f 36 echo " </TD>";
37 echo " </TR>";
175e7218 38 echo " <TR BGCOLOR=#FFFFFF WIDTH=100%>";
21c3249f 39 echo " <TD ALIGN=CENTER>";
aae41ae9 40 echo " <BR>";
b581fa60 41 echo _("You have been successfully signed out.");
aae41ae9 42 echo "<BR>";
b581fa60 43 echo _("Click here to ");
44 echo "<A HREF=\"login.php\" TARGET=_top>";
45 echo _("log back in.");
aae41ae9 46 echo "</A><BR><BR>";
21c3249f 47 echo " </TD>";
48 echo " </TR>";
175e7218 49 echo " <TR BGCOLOR=#DCDCDC WIDTH=100%>";
21c3249f 50 echo " <TD ALIGN=CENTER>";
aae41ae9 51 echo " <BR>";
21c3249f 52 echo " </TD>";
53 echo " </TR>";
54 echo "</TABLE>";
55?>
56</BODY>
57</HTML>
58