aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/login.php45
-rw-r--r--phpBB/templates/Default/login_body.tpl34
2 files changed, 78 insertions, 1 deletions
diff --git a/phpBB/login.php b/phpBB/login.php
index 26109ccccc..4890ed80e5 100644
--- a/phpBB/login.php
+++ b/phpBB/login.php
@@ -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);
+
}
?>
diff --git a/phpBB/templates/Default/login_body.tpl b/phpBB/templates/Default/login_body.tpl
new file mode 100644
index 0000000000..2de375fbbb
--- /dev/null
+++ b/phpBB/templates/Default/login_body.tpl
@@ -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}:&nbsp;</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}:&nbsp;</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>