Skip to content

Commit

Permalink
updated login, added self user account creation
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@119 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Jan 25, 2001
1 parent 7198066 commit 9f4b4d9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion login.php3
Expand Up @@ -27,7 +27,7 @@
if( password_match( $f_password, $u_password ) && ( $u_enabled=="on" ) ) {
### set permanent cookie (1 year)
if ( $f_perm_login=="on") {
setcookie( $g_string_cookie, $u_cookie_string, time()+$g_time_length );
setcookie( $g_string_cookie, $u_cookie_string, time()+$g_cookie_time_length );
}
### set temp cookie, cookie dies after browser closes
else {
Expand Down
14 changes: 9 additions & 5 deletions login_error_page.php3
Expand Up @@ -23,10 +23,10 @@
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table cols=2 width=100%>
<table width=100%>
<form method=post action="<? echo $g_login ?>">
<tr>
<td bgcolor=<? echo $g_table_title_color ?>>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b><? echo $s_login_title ?></b>
</td>
</tr>
Expand All @@ -35,23 +35,23 @@
<? echo $s_username ?>:
</td>
<td width=75%>
<input type=text name=f_username size=32>
<input type=text name=f_username size=32 maxlength=32>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
<td>
<? echo $s_password ?>:
</td>
<td>
<input type=password name=f_password size=16>
<input type=password name=f_password size=16 maxlength=32>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
<td>
<? echo $s_save_login ?>:
</td>
<td>
<input type=checkbox name=f_perm_login size=16>
<input type=checkbox name=f_perm_login>
</td>
</tr>
<tr>
Expand All @@ -64,6 +64,10 @@
</td>
</tr>
</table>
<? if ( $g_allow_signup != "0" ) { ?>
<p>
<a href="<? echo $g_signup_page ?>"><? echo $s_signup_link ?></a>
<? } ?>
</div>

<? print_footer(__FILE__) ?>
Expand Down
14 changes: 10 additions & 4 deletions login_page.php3
Expand Up @@ -15,10 +15,12 @@

<p>
<div align=center>
<? echo $s_login_page_info ?>
<p>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table cols=2 width=100%>
<table width=100%>
<form action="<? echo $g_login ?>" method=post>
<tr>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
Expand All @@ -30,23 +32,23 @@
<? echo $s_username ?>:
</td>
<td width=75%>
<input type=text name=f_username size=32>
<input type=text name=f_username size=32 maxlength=32>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_light ?>>
<td>
<? echo $s_password ?>:
</td>
<td>
<input type=password name=f_password size=16>
<input type=password name=f_password size=16 maxlength=32>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
<td>
<? echo $s_save_login ?>:
</td>
<td>
<input type=checkbox name=f_perm_login size=16>
<input type=checkbox name=f_perm_login>
</td>
</tr>
<tr>
Expand All @@ -59,6 +61,10 @@
</td>
</tr>
</table>
<? if ( $g_allow_signup != "0" ) { ?>
<p>
<a href="<? echo $g_signup_page ?>"><? echo $s_signup_link ?></a>
<? } ?>
</div>

<? print_footer(__FILE__) ?>
Expand Down
4 changes: 4 additions & 0 deletions logout_page.php3
Expand Up @@ -8,6 +8,10 @@
<?
### delete cookies
setcookie( $g_string_cookie );
setcookie( $g_project_cookie );
setcookie( $g_view_all_cookie );
setcookie( $g_view_reported_cookie );
setcookie( $g_view_assigned_cookie );
?>
<? print_html_top() ?>
<? print_head_top() ?>
Expand Down

0 comments on commit 9f4b4d9

Please sign in to comment.