714c14453821bd9238ab7069fa6de7029e469826
[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=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\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>SquirrelMail version $version<BR>By Nathan and Luke Ehresman<BR></FONT><CENTER>\n";
22 echo "<TABLE COLS=1 WIDTH=350>\n";
23 echo " <TR>\n";
24 echo " <TD BGCOLOR=\"$color[0]\">\n";
25 echo " <B><CENTER><FONT FACE=\"Arial,Helvetica\">$org_name Login</FONT></CENTER></B>\n";
26 echo " </TD>\n";
27 echo " </TR><TR>\n";
28 echo " <TD BGCOLOR=\"$color[4]\">\n";
29 echo " <TABLE COLS=2 WIDTH=100%>\n";
30 echo " <TR>\n";
31 echo " <TD WIDTH=30% ALIGN=right>\n";
32 echo " <FONT FACE=\"Arial,Helvetica\">Name:</FONT>\n";
33 echo " </TD><TD WIDTH=* ALIGN=left>\n";
34 echo " <CENTER><INPUT TYPE=TEXT NAME=username></CENTER>\n";
35 echo " </TD>\n";
36 echo " </TR><TR>\n";
37 echo " <TD WIDTH=30% ALIGN=right>\n";
38 echo " <FONT FACE=\"Arial,Helvetica\">Password:</FONT>\n";
39 echo " </TD><TD WIDTH=* ALIGN=left>\n";
40 echo " <CENTER><INPUT TYPE=PASSWORD NAME=key></CENTER>\n";
41 echo " </TD>\n";
42 echo " </TABLE>\n";
43 echo " </TD>\n";
44 echo " </TR><TR>\n";
45 echo " <TD>\n";
46 echo " <CENTER><INPUT TYPE=SUBMIT VALUE=Login></CENTER>\n";
47 echo " </TD>\n";
48 echo " </TR>\n";
49 echo "</TABLE>\n";
50 echo "</FORM>\n";
51 ?>
52 </BODY>
53 </HTML>
54