84ec5b5e591bf661f965745a50d58b0908008017
[squirrelmail.git] / src / signout.php
1 <?
2 /**
3 ** signout.php
4 **
5 ** Clears the cookie, and logs them out.
6 **
7 **/
8
9 $username = "";
10 $key = "";
11 $logged_in = 0;
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 }
22
23 setcookie("username", "", time(), "/");
24 setcookie("key", "", time(), "/");
25 setcookie("logged_in", 0, time(), "/");
26 ?>
27 <HTML>
28 <?
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%>";
32 echo " <TD ALIGN=CENTER>";
33 echo " <B>";
34 echo _("Sign Out");
35 echo "</B>";
36 echo " </TD>";
37 echo " </TR>";
38 echo " <TR BGCOLOR=FFFFFF WIDTH=100%>";
39 echo " <TD ALIGN=CENTER>";
40 echo " <BR>";
41 echo _("You have been successfully signed out.");
42 echo "<BR>";
43 echo _("Click here to ");
44 echo "<A HREF=\"login.php\" TARGET=_top>";
45 echo _("log back in.");
46 echo "</A><BR><BR>";
47 echo " </TD>";
48 echo " </TR>";
49 echo " <TR BGCOLOR=DCDCDC WIDTH=100%>";
50 echo " <TD ALIGN=CENTER>";
51 echo " <BR>";
52 echo " </TD>";
53 echo " </TR>";
54 echo "</TABLE>";
55 ?>
56 </BODY>
57 </HTML>
58