2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
2006-06-17 06:10:10 +00:00
|
|
|
require_once(BASE."include/util.php");
|
|
|
|
|
|
|
|
|
|
$aClean = array(); //array of filtered user input
|
|
|
|
|
|
2006-07-06 04:46:13 +00:00
|
|
|
$aClean['sUserEmail'] = makeSafe($_POST['sUserEmail']);
|
2006-06-17 06:10:10 +00:00
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
/**************/
|
|
|
|
|
/* Login Form */
|
|
|
|
|
/**************/
|
2006-07-06 17:27:54 +00:00
|
|
|
echo '<form method="post" name="sFlogin" action="account.php">',"\n";
|
2004-03-15 16:22:00 +00:00
|
|
|
echo html_frame_start("Login to Application DB","400","",0)
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<!-- start of login form -->
|
2004-12-12 03:51:51 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
<!--
|
2004-03-15 16:22:00 +00:00
|
|
|
function cmd_send_passwd() {
|
2006-07-06 17:27:54 +00:00
|
|
|
document.sFlogin.sCmd.value = "send_passwd";
|
|
|
|
|
document.sFlogin.submit();
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
<table border="0" width="100%" cellspacing=0 cellpadding="10">
|
|
|
|
|
<tr>
|
2005-01-10 22:54:04 +00:00
|
|
|
<td class=color1> E-mail </td>
|
2006-07-06 04:46:13 +00:00
|
|
|
<td class=color0> <input type="text" name="sUserEmail" value='<?php if(!empty($aClean['sUserEmail'])) echo $aClean['sUserEmail']?>'> </td>
|
2004-12-12 03:51:51 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class=color1> Password </td>
|
2006-07-06 04:46:13 +00:00
|
|
|
<td class=color0> <input type="password" name="sUserPassword"> </td>
|
2004-12-12 03:51:51 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2004-03-15 16:22:00 +00:00
|
|
|
<td colspan=2 align=center class=color3>
|
2006-07-07 16:16:19 +00:00
|
|
|
<input type="submit" name="sLogin" value=" Login " class=button>
|
2004-03-15 16:22:00 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<!-- end of login form -->
|
|
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
2004-03-15 16:22:00 +00:00
|
|
|
|
|
|
|
|
echo html_frame_end(" ");
|
2006-07-06 17:27:54 +00:00
|
|
|
echo '<input type="hidden" name="sCmd" value="do_login">',"\n";
|
|
|
|
|
echo '<input type="hidden" name="sExtReferer" value="'.$_SERVER['HTTP_REFERER'].'">',"\n";
|
2004-03-15 16:22:00 +00:00
|
|
|
echo '</form>',"\n";
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<p align=center>Don't have an account yet?<br>
|
2006-07-06 17:27:54 +00:00
|
|
|
[<a href="account.php?sCmd=new" onMouseOver="document.status='';return true;">Create a New Account</a>]</p>
|
2004-03-15 16:22:00 +00:00
|
|
|
|
|
|
|
|
<p align=center>Lost your password?<br>
|
|
|
|
|
[<a href="javascript:cmd_send_passwd();" onMouseOver="document.status='';return true;">Email a New Password</a>]</p>
|
|
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
2004-03-15 16:22:00 +00:00
|
|
|
|
|
|
|
|
echo p(),p(),p();
|
|
|
|
|
|
|
|
|
|
?>
|