This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/include/form_login.php

63 lines
1.7 KiB
PHP
Raw Normal View History

<?php
require_once(BASE."include/util.php");
$aClean = array(); //array of filtered user input
$aClean['sUserEmail'] = makeSafe($_POST['sUserEmail']);
/**************/
/* Login Form */
/**************/
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 -->
<script type="text/javascript">
<!--
2004-03-15 16:22:00 +00:00
function cmd_send_passwd() {
document.sFlogin.sCmd.value = "send_passwd";
document.sFlogin.submit();
2004-03-15 16:22:00 +00:00
}
//-->
</script>
<table border="0" width="100%" cellspacing=0 cellpadding="10">
<tr>
<td class=color1> E-mail </td>
<td class=color0> <input type="text" name="sUserEmail" value='<?php if(!empty($aClean['sUserEmail'])) echo $aClean['sUserEmail']?>'> </td>
</tr>
<tr>
<td class=color1> Password </td>
<td class=color0> <input type="password" name="sUserPassword"> </td>
</tr>
<tr>
2004-03-15 16:22:00 +00:00
<td colspan=2 align=center class=color3>
<input type="submit" name="login" value=" Login " class=button>
2004-03-15 16:22:00 +00:00
</td>
</tr>
</table>
<!-- end of login form -->
<?php
2004-03-15 16:22:00 +00:00
echo html_frame_end("&nbsp;");
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>
[<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>
<?php
2004-03-15 16:22:00 +00:00
echo p(),p(),p();
?>