Skip to content

Commit

Permalink
project support
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@145 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Feb 4, 2001
1 parent 64aa25c commit 6678147
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 14 deletions.
2 changes: 1 addition & 1 deletion manage_user_delete.php3
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
Expand Down
2 changes: 1 addition & 1 deletion manage_user_delete_page.php3
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
Expand Down
42 changes: 39 additions & 3 deletions manage_user_page.php3
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
Expand Down Expand Up @@ -53,15 +53,15 @@
<? echo $s_username ?>:
</td>
<td colspan=2>
<input type=text size=16 name=f_username value="<? echo $u_username ?>">
<input type=text size=16 maxlength=32 name=f_username value="<? echo $u_username ?>">
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_light ?>>
<td>
<? echo $s_email ?>:
</td>
<td colspan=2>
<input type=text size=32 name=f_email value="<? echo $u_email ?>">
<input type=text size=32 maxlength=64 name=f_email value="<? echo $u_email ?>">
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
Expand Down Expand Up @@ -125,6 +125,42 @@
<? echo $s_reset_password_msg ?>
</div>

<p>
<div align=center>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<tr>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Projects</b>
</td>
</tr>
<?
$query = "SELECT p.name, u.name
FROM
WHERE u.id=";
$result = db_result( $query );
$user_project_count = db_num_rows( $result );
for ($i=0;$i<$user_project_count;$i++) {
$row = db_fetch_aray( $result );
extract( $row, EXTR_PREFIX_ALL, "v" );
?>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
<td>
<? echo $v_name ?>
</td>
<td>
<? echo $v_access_level ?>
</td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>
</div>

<? print_footer(__FILE__) ?>
<? print_body_bottom() ?>
<? print_html_bottom() ?>
29 changes: 21 additions & 8 deletions manage_user_reset.php3
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
Expand All @@ -15,13 +15,26 @@
exit;
}

if ( $f_protected!="on" ) {
### password is blank password
$query = "UPDATE $g_mantis_user_table
SET password='4nPtPLdAFdoxA'
WHERE id='$f_id'";
$result = db_query( $query );
}
### Create random password
$t_password = create_random_password( $p_email );

### create the almost unique string for each user then insert into the table
$t_password2 = crypt( $t_password );
$query = "UPDATE $g_mantis_user_table
SET password='$t_password2'
WHERE id='$f_id'";
$result = db_query( $query );

# if ( $f_protected!="on" ) {
# ### password is blank password
# $query = "UPDATE $g_mantis_user_table
# SET password='4nPtPLdAFdoxA'
# WHERE id='$f_id'";
# $result = db_query( $query );
# }

### Send notification email
email_reset( $f_id, $t_password );
?>
<? print_html_top() ?>
<? print_head_top() ?>
Expand Down
2 changes: 1 addition & 1 deletion manage_user_update.php3
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
Expand Down

0 comments on commit 6678147

Please sign in to comment.