cb9b32a2cff4394a4ec5860d094a7d2b51fa879b
[squirrelmail.git] / src / login.php
1 <?
2 /**
3 ** login.php
4 **
5 ** Very simple login screen that clears the cookie every time it's loaded
6 **
7 **/
8
9 setcookie("username", "", time(), "/");
10 setcookie("key", "", time(), "/");
11 setcookie("logged_in", 0, time(), "/");
12 ?>
13 <HTML>
14 <?
15 include("../config/config.php");
16 include("../functions/strings.php");
17
18 echo "<BODY TEXT=000000 BGCOLOR=FFFFFF LINK=0000CC VLINK=0000CC ALINK=0000CC>\n";
19 echo "<FORM ACTION=webmail.php METHOD=\"POST\" NAME=f>\n";
20 echo "<CENTER><IMG SRC=\"$org_logo\"</CENTER>\n";
21 echo "<CENTER><FONT FACE=\"Arial,Helvetica\" SIZE=-2>";
22 echo _("SquirrelMail version $version<BR>By the SquirrelMail Development Team");
23 echo "<BR></FONT><CENTER>\n";
24 echo "<TABLE COLS=1 WIDTH=350>\n";
25 echo " <TR>\n";
26 echo " <TD BGCOLOR=DCDCDC>\n";
27 echo " <B><CENTER><FONT FACE=\"Arial,Helvetica\">$org_name Login</FONT></CENTER></B>\n";
28 echo " </TD>\n";
29 echo " </TR><TR>\n";
30 echo " <TD BGCOLOR=FFFFFF>\n";
31 echo " <TABLE COLS=2 WIDTH=100%>\n";
32 echo " <TR>\n";
33 echo " <TD WIDTH=30% ALIGN=right>\n";
34 echo " <FONT FACE=\"Arial,Helvetica\">";
35 echo _("Name:");
36 echo " </FONT>\n";
37 echo " </TD><TD WIDTH=* ALIGN=left>\n";
38 echo " <CENTER><INPUT TYPE=TEXT NAME=username></CENTER>\n";
39 echo " </TD>\n";
40 echo " </TR><TR>\n";
41 echo " <TD WIDTH=30% ALIGN=right>\n";
42 echo " <FONT FACE=\"Arial,Helvetica\">";
43 echo _("Password:");
44 echo " </FONT>\n";
45 echo " </TD><TD WIDTH=* ALIGN=left>\n";
46 echo " <CENTER><INPUT TYPE=PASSWORD NAME=key></CENTER>\n";
47 echo " </TD>\n";
48 echo " </TABLE>\n";
49 echo " </TD>\n";
50 echo " </TR><TR>\n";
51 echo " <TD>\n";
52 echo " <CENTER><INPUT TYPE=SUBMIT VALUE=\"";
53 echo _("Login");
54 echo "\"></CENTER>\n";
55 echo " </TD>\n";
56 echo " </TR>\n";
57 echo "</TABLE>\n";
58 echo "</FORM>\n";
59 ?>
60 </BODY>
61 </HTML>
62