2 # MantisBT - A PHP based bugtracking system
4 # MantisBT is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
9 # MantisBT is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
20 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
21 * @link http://www.mantisbt.org
24 * @uses access_api.php
25 * @uses authentication_api.php
26 * @uses config_api.php
27 * @uses constant_inc.php
29 * @uses helper_api.php
35 require_once( 'core.php' );
36 require_api( 'access_api.php' );
37 require_api( 'authentication_api.php' );
38 require_api( 'config_api.php' );
39 require_api( 'constant_inc.php' );
40 require_api( 'form_api.php' );
41 require_api( 'helper_api.php' );
42 require_api( 'html_api.php' );
43 require_api( 'lang_api.php' );
44 require_api( 'print_api.php' );
46 auth_reauthenticate();
48 access_ensure_global_level( config_get( 'manage_user_threshold' ) );
50 $t_ldap = ( LDAP
== config_get( 'login_method' ) );
54 print_manage_menu( 'manage_user_create_page.php' );
58 <form method
="post" action
="manage_user_create.php">
59 <?php
echo form_security_field( 'manage_user_create' ) ?
>
60 <table
class="width50" cellspacing
="1">
62 <td
class="form-title" colspan
="2">
63 <?php
echo lang_get( 'create_new_account_title' ) ?
>
66 <tr
<?php
echo helper_alternate_class() ?
>>
67 <td
class="category" width
="25%">
68 <?php
echo lang_get( 'username' ) ?
>
71 <input type
="text" name
="username" size
="32" maxlength
="<?php echo USERLEN;?>" />
75 if ( !$t_ldap ||
config_get( 'use_ldap_realname' ) == OFF
) {
77 <tr
<?php
echo helper_alternate_class() ?
>>
79 <?php
echo lang_get( 'realname' ) ?
>
82 <input type
="text" name
="realname" size
="32" maxlength
="<?php echo REALLEN;?>" />
88 if ( !$t_ldap ||
config_get( 'use_ldap_email' ) == OFF
) {
90 <tr
<?php
echo helper_alternate_class() ?
>>
92 <?php
echo lang_get( 'email' ) ?
>
95 <?php
print_email_input( 'email', '' ) ?
>
101 if ( OFF
== config_get( 'send_reset_password' ) ) {
103 <tr
<?php
echo helper_alternate_class() ?
>>
104 <td
class="category">
105 <?php
echo lang_get( 'password' ) ?
>
108 <input type
="password" name
="password" size
="32" maxlength
="<?php echo PASSLEN;?>" />
111 <tr
<?php
echo helper_alternate_class() ?
>>
112 <td
class="category">
113 <?php
echo lang_get( 'verify_password' ) ?
>
116 <input type
="password" name
="password_verify" size
="32" maxlength
="<?php echo PASSLEN;?>" />
122 <tr
<?php
echo helper_alternate_class() ?
>>
123 <td
class="category">
124 <?php
echo lang_get( 'access_level' ) ?
>
127 <select name
="access_level">
128 <?php
print_enum_string_option_list( 'access_levels', config_get( 'default_new_account_access_level' ) ) ?
>
132 <tr
<?php
echo helper_alternate_class() ?
>>
133 <td
class="category">
134 <?php
echo lang_get( 'enabled' ) ?
>
137 <input type
="checkbox" name
="enabled" checked
="checked" />
140 <tr
<?php
echo helper_alternate_class() ?
>>
141 <td
class="category">
142 <?php
echo lang_get( 'protected' ) ?
>
145 <input type
="checkbox" name
="protected" />
149 <td
class="center" colspan
="2">
150 <input type
="submit" class="button" value
="<?php echo lang_get( 'create_user_button' ) ?>" />