Just configured from Wine's GIT
svn path=/; revision=1
This commit is contained in:
63
include/form_login.php
Normal file
63
include/form_login.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
require_once(BASE."include/util.php");
|
||||
|
||||
/**************/
|
||||
/* Login Form */
|
||||
/**************/
|
||||
echo "<div class='default_container'>\n";
|
||||
echo '<form method="post" name="sFlogin" action="account.php">',"\n";
|
||||
echo html_frame_start("Login to Application DB","400","",0);
|
||||
/* Pass on the URL we should return to after log-in */
|
||||
global $aClean;
|
||||
echo '<input type="hidden" name="sReturnTo" value="' . (isset($aClean['sReturnTo']) ? $aClean['sReturnTo'] : '') . '">';
|
||||
?>
|
||||
|
||||
<!-- start of login form -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function cmd_send_passwd() {
|
||||
document.sFlogin.sCmd.value = "send_passwd";
|
||||
document.sFlogin.submit();
|
||||
}
|
||||
//-->
|
||||
</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>
|
||||
<td colspan=2 align=center class=color3>
|
||||
<input type="submit" name="sLogin" value=" Login " class=button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- end of login form -->
|
||||
|
||||
<?php
|
||||
|
||||
echo html_frame_end(" ");
|
||||
echo '<input type="hidden" name="sCmd" value="do_login">',"\n";
|
||||
echo '<input type="hidden" name="sExtReferer" value="'.$_SERVER['HTTP_REFERER'].'">',"\n";
|
||||
echo '</form>',"\n";
|
||||
echo "</div>\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>
|
||||
|
||||
<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
|
||||
|
||||
echo p(),p(),p();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user