714c14453821bd9238ab7069fa6de7029e469826
5 ** Very simple login screen that clears the cookie every time it's loaded
9 setcookie("username", "", time(), "/");
10 setcookie("key", "", time(), "/");
11 setcookie("logged_in", 0, time(), "/");
15 include("../config/config.php");
16 include("../functions/strings.php");
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";
24 echo " <TD BGCOLOR=\"$color[0]\">\n";
25 echo " <B><CENTER><FONT FACE=\"Arial,Helvetica\">$org_name Login</FONT></CENTER></B>\n";
28 echo " <TD BGCOLOR=\"$color[4]\">\n";
29 echo " <TABLE COLS=2 WIDTH=100%>\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";
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";
46 echo " <CENTER><INPUT TYPE=SUBMIT VALUE=Login></CENTER>\n";