Fix #11417: Allow EVENT_MENU_MAIN plugin events to return null
[mantis/radio.git] / manage_user_create_page.php
blob5303286362b122dec4f2a9c9760f0e1638657e94
1 <?php
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/>.
17 /**
18 * @package MantisBT
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
23 * @uses core.php
24 * @uses access_api.php
25 * @uses authentication_api.php
26 * @uses config_api.php
27 * @uses constant_inc.php
28 * @uses form_api.php
29 * @uses helper_api.php
30 * @uses html_api.php
31 * @uses lang_api.php
32 * @uses print_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' ) );
52 html_page_top();
54 print_manage_menu( 'manage_user_create_page.php' );
56 <br />
57 <div align="center">
58 <form method="post" action="manage_user_create.php">
59 <?php echo form_security_field( 'manage_user_create' ) ?>
60 <table class="width50" cellspacing="1">
61 <tr>
62 <td class="form-title" colspan="2">
63 <?php echo lang_get( 'create_new_account_title' ) ?>
64 </td>
65 </tr>
66 <tr <?php echo helper_alternate_class() ?>>
67 <td class="category" width="25%">
68 <?php echo lang_get( 'username' ) ?>
69 </td>
70 <td width="75%">
71 <input type="text" name="username" size="32" maxlength="<?php echo USERLEN;?>" />
72 </td>
73 </tr>
74 <?php
75 if ( !$t_ldap || config_get( 'use_ldap_realname' ) == OFF ) {
77 <tr <?php echo helper_alternate_class() ?>>
78 <td class="category">
79 <?php echo lang_get( 'realname' ) ?>
80 </td>
81 <td>
82 <input type="text" name="realname" size="32" maxlength="<?php echo REALLEN;?>" />
83 </td>
84 </tr>
85 <?php
88 if ( !$t_ldap || config_get( 'use_ldap_email' ) == OFF ) {
90 <tr <?php echo helper_alternate_class() ?>>
91 <td class="category">
92 <?php echo lang_get( 'email' ) ?>
93 </td>
94 <td>
95 <?php print_email_input( 'email', '' ) ?>
96 </td>
97 </tr>
98 <?php
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' ) ?>
106 </td>
107 <td>
108 <input type="password" name="password" size="32" maxlength="<?php echo PASSLEN;?>" />
109 </td>
110 </tr>
111 <tr <?php echo helper_alternate_class() ?>>
112 <td class="category">
113 <?php echo lang_get( 'verify_password' ) ?>
114 </td>
115 <td>
116 <input type="password" name="password_verify" size="32" maxlength="<?php echo PASSLEN;?>" />
117 </td>
118 </tr>
119 <?php
122 <tr <?php echo helper_alternate_class() ?>>
123 <td class="category">
124 <?php echo lang_get( 'access_level' ) ?>
125 </td>
126 <td>
127 <select name="access_level">
128 <?php print_enum_string_option_list( 'access_levels', config_get( 'default_new_account_access_level' ) ) ?>
129 </select>
130 </td>
131 </tr>
132 <tr <?php echo helper_alternate_class() ?>>
133 <td class="category">
134 <?php echo lang_get( 'enabled' ) ?>
135 </td>
136 <td>
137 <input type="checkbox" name="enabled" checked="checked" />
138 </td>
139 </tr>
140 <tr <?php echo helper_alternate_class() ?>>
141 <td class="category">
142 <?php echo lang_get( 'protected' ) ?>
143 </td>
144 <td>
145 <input type="checkbox" name="protected" />
146 </td>
147 </tr>
148 <tr>
149 <td class="center" colspan="2">
150 <input type="submit" class="button" value="<?php echo lang_get( 'create_user_button' ) ?>" />
151 </td>
152 </tr>
153 </table>
154 </form>
155 </div>
157 <?php
158 html_page_bottom();