Skip to content

Commit

Permalink
added protected checkbox on create user
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@48 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 9, 2000
1 parent 9ec5566 commit 842708d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -32,6 +32,7 @@ To Do:
* Added profile management
* Profiles can be used for advanced bug submission
* Made enum displays (category, status, etc) easier to maintain via print_lists();
* Removed the destructive DROP table in db_generate.sql

12.06.2000 - 0.10.2

Expand Down
4 changes: 2 additions & 2 deletions manage_create_new_user.php3
Expand Up @@ -21,10 +21,10 @@
$query = "INSERT
INTO $g_mantis_user_table
( id, username, email, password, date_created, last_visit,
access_level, enabled, cookie_string )
access_level, enabled, protected, cookie_string )
VALUES
( null, '$f_username', '$f_email', '$t_password', NOW(), NOW(),
'$f_access_level', '$f_enabled', '$t_cookie_string')";
'$f_access_level', '$f_enabled', '$f_protected', '$t_cookie_string')";
$result = mysql_query( $query );
?>
<? print_html_top() ?>
Expand Down
8 changes: 8 additions & 0 deletions manage_create_user_page.php3
Expand Up @@ -93,6 +93,14 @@
<input type=checkbox name=f_enabled CHECKED>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_dark ?>>
<td>
Protected
</td>
<td colspan=2>
<input type=checkbox name=f_protected>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input type=submit value="Create User">
Expand Down
2 changes: 0 additions & 2 deletions menu_inc.php
Expand Up @@ -33,9 +33,7 @@
<a href="<? echo $g_path.$g_report_bug_page ?>">Report Bug</a> |
<? } ?>
<a href="<? echo $g_path.$g_summary_page ?>">Summary</a> |
<? if ( $t_protected!="on" ) { ?>
<a href="<? echo $g_path.$g_account_page ?>">Account</a> |
<? } ?>
<? if ( $t_access_level=="administrator" ) { ?>
<a href="<? echo $g_path.$g_manage_page ?>">Manage</a> |
<a href="<? echo $g_path.$g_news_menu_page ?>">Edit News</a> |
Expand Down

0 comments on commit 842708d

Please sign in to comment.