mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Introduced a full page login box inc prelim themeing
git-svn-id: file:///svn/phpbb/trunk@190 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
87b7ae578f
commit
fdbafb32f6
2 changed files with 78 additions and 1 deletions
|
@ -89,7 +89,50 @@ if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit']))
|
|||
}
|
||||
else
|
||||
{
|
||||
header("Location: index.$phpEx");
|
||||
//
|
||||
// Do a full login page dohickey
|
||||
//
|
||||
$pagetype = "login";
|
||||
$page_title = "Log In";
|
||||
|
||||
include('includes/page_header.'.$phpEx);
|
||||
|
||||
$template->assign_vars(array(
|
||||
"PHPEX" => $phpEx,
|
||||
"PHP_SELF" => $PHP_SELF,
|
||||
|
||||
"T_TR_COLOR1" => "#AA0000",
|
||||
"T_TR_COLOR2" => "#AA0000",
|
||||
"T_TR_COLOR3" => "#AA0000",
|
||||
"T_TH_COLOR1" => "#495FA8",
|
||||
"T_TH_COLOR2" => "#AAAA00",
|
||||
"T_TH_COLOR3" => "#AA00AA",
|
||||
"T_TD_COLOR1" => "#000000",
|
||||
"T_TD_COLOR2" => "#CCCCCC",
|
||||
"T_TD_COLOR3" => "#DDDDDD",
|
||||
"T_FONTFACE1" => "sans-serif",
|
||||
"T_FONTFACE2" => "sans-serif",
|
||||
"T_FONTFACE3" => "sans-serif",
|
||||
"T_FONTSIZE1" => "2",
|
||||
"T_FONTSIZE2" => "2",
|
||||
"T_FONTSIZE3" => "2",
|
||||
"T_FONTCOLOR1" => "#FFFFFF",
|
||||
"T_FONTCOLOR2" => "#000000",
|
||||
"T_FONTCOLOR3" => "2",
|
||||
|
||||
"L_USERNAME" => $l_username,
|
||||
"L_PASSWORD" => $l_password,
|
||||
"L_SEND_PASSWORD" => "Send me a new password",
|
||||
"L_LOGIN" => $l_login,
|
||||
|
||||
"USERNAME" => $userdata['username']
|
||||
)
|
||||
);
|
||||
|
||||
$template->pparse("body");
|
||||
|
||||
include('includes/page_tail.'.$phpEx);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
34
phpBB/templates/Default/login_body.tpl
Normal file
34
phpBB/templates/Default/login_body.tpl
Normal file
|
@ -0,0 +1,34 @@
|
|||
<tr>
|
||||
<td><br clear="all" /><br />
|
||||
|
||||
<table border="0" align="center" width="95%" cellspacing="2">
|
||||
<tr>
|
||||
<td align="center"><table border="0" cellpadding="1" cellspacing="0" width="60%">
|
||||
<tr><form action="{PHP_SELF}" method="post">
|
||||
<td bgcolor="{T_TD_COLOR1}"><table border="0" cellpadding="4" cellspacing=1" width="100%">
|
||||
<tr>
|
||||
<th colspan="2" bgcolor="{T_TH_COLOR1}" align="center"><font face="{T_FONTFACE1}" size="{T_FONTSIZE1}" color="{T_FONTCOLOR1}"><p><b>Please enter your username and password to login</b></p></font></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45%" bgcolor="{T_TD_COLOR3}" align="right"><font face="{T_FONTFACE1}" size="{T_FONTSIZE1}" color="{T_FONTCOLOR2}">{L_USERNAME}: </font></td><td bgcolor="{T_TD_COLOR3}"><input type="text" name="username" size="25" maxlength="40" value="{USERNAME}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="{T_TD_COLOR3}" align="right"><font face="verdana,serif" size="2" color="{T_FONTCOLOR2}">{L_PASSWORD}: </font></td><td bgcolor="{T_TD_COLOR3}"><input type="password" name="password" size="25" maxlength="25"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="{T_TD_COLOR2}"><table width="100%" cellspacing="0" cellpadding="6" border="0">
|
||||
<tr>
|
||||
<td align="center"><font face="{T_FONTFACE1}" size="{T_FONTSIZE1}"><a href="sendpassword.{PHPEX}">{L_SEND_PASSWORD}</a></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" name="submit" value="{L_LOGIN}"></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</form></tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
Loading…
Add table
Reference in a new issue