You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
21 years ago
|
<?php
|
||
|
//
|
||
|
// "$Id: login.php,v 1.1 2004/05/17 20:28:52 mike Exp $"
|
||
|
//
|
||
|
//
|
||
|
|
||
|
//
|
||
|
// Include necessary headers...
|
||
|
//
|
||
|
|
||
|
include_once "phplib/html.php";
|
||
|
|
||
|
|
||
|
if ($REQUEST_METHOD == "POST" &&
|
||
|
array_key_exists("USERNAME", $_POST) &&
|
||
|
array_key_exists("PASSWORD", $_POST))
|
||
|
auth_login($_POST["USERNAME"], $_POST["PASSWORD"]);
|
||
|
|
||
|
if ($LOGIN_USER != "")
|
||
|
header("Location: account.php");
|
||
|
else
|
||
|
{
|
||
|
html_header("Login");
|
||
|
|
||
|
print("<h1>Login</h1>\n"
|
||
|
."<form method='POST' action='$PHP_SELF'>"
|
||
|
."<p><table width='100%'>\n"
|
||
|
."<tr><th align='right'>Username:</th>"
|
||
|
."<td><input type='text' name='USERNAME' size='16' maxsize='255'");
|
||
|
|
||
|
if (array_key_exists("USERNAME", $_POST))
|
||
|
print(" value='" . htmlspecialchars($_POST["USERNAME"], ENT_QUOTES) . "'");
|
||
|
|
||
|
print("/></td></tr>\n"
|
||
|
."<tr><th align='right'>Password:</th>"
|
||
|
."<td><input type='password' name='PASSWORD' size='16' maxsize='255'/>"
|
||
|
."</td></tr>\n"
|
||
|
."<tr><th></th><td><input type='submit' value='Login'/></td></tr>\n"
|
||
|
."</table></p></form>\n");
|
||
|
|
||
|
html_footer();
|
||
|
}
|
||
|
|
||
|
|
||
|
//
|
||
|
// End of "$Id: login.php,v 1.1 2004/05/17 20:28:52 mike Exp $".
|
||
|
//
|
||
|
?>
|