1<?php 2# MantisBT - A PHP based bugtracking system 3 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. 8# 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. 13# 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/>. 16 17/** 18 * User Create Page 19 * 20 * @package MantisBT 21 * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 22 * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net 23 * @link http://www.mantisbt.org 24 * 25 * @uses core.php 26 * @uses access_api.php 27 * @uses authentication_api.php 28 * @uses config_api.php 29 * @uses constant_inc.php 30 * @uses form_api.php 31 * @uses helper_api.php 32 * @uses html_api.php 33 * @uses lang_api.php 34 * @uses print_api.php 35 */ 36 37require_once( 'core.php' ); 38require_api( 'access_api.php' ); 39require_api( 'authentication_api.php' ); 40require_api( 'config_api.php' ); 41require_api( 'constant_inc.php' ); 42require_api( 'form_api.php' ); 43require_api( 'helper_api.php' ); 44require_api( 'html_api.php' ); 45require_api( 'lang_api.php' ); 46require_api( 'print_api.php' ); 47 48auth_reauthenticate(); 49 50access_ensure_global_level( config_get( 'manage_user_threshold' ) ); 51 52$t_ldap = ( LDAP == config_get_global( 'login_method' ) ); 53 54layout_page_header(); 55 56layout_page_begin( 'manage_overview_page.php' ); 57 58print_manage_menu( 'manage_user_create_page.php' ); 59?> 60<div class="col-md-12 col-xs-12"> 61<div class="space-10"></div> 62<div id="manage-user-create-div" class="form-container"> 63 <form id="manage-user-create-form" method="post" action="manage_user_create.php"> 64 <div class="widget-box widget-color-blue2"> 65 <div class="widget-header widget-header-small"> 66 <h4 class="widget-title lighter"> 67 <?php print_icon( 'fa-user', 'ace-icon' ); ?> 68 <?php echo lang_get( 'create_new_account_title' ) ?> 69 </h4> 70 </div> 71 <div class="widget-body"> 72 <div class="widget-main no-padding"> 73 <div class="table-responsive"> 74 <table class="table table-bordered table-condensed table-striped"> 75 <fieldset> 76 <?php echo form_security_field( 'manage_user_create' ) ?> 77 78 <tr> 79 <td class="category"> 80 <?php echo lang_get( 'username' ) ?> 81 </td> 82 <td> 83 <input type="text" id="user-username" name="username" class="input-sm" size="32" maxlength="<?php echo DB_FIELD_SIZE_USERNAME;?>" /> 84 </td> 85 </tr><?php 86 if( !$t_ldap || config_get_global( 'use_ldap_realname' ) == OFF ) { ?> 87 <tr> 88 <td class="category"> 89 <?php echo lang_get( 'realname' ) ?> 90 </td> 91 <td> 92 <input type="text" id="user-realname" name="realname" class="input-sm" size="32" maxlength="<?php echo DB_FIELD_SIZE_REALNAME;?>" /> 93 </td> 94 </tr><?php 95 } 96 if( !$t_ldap || config_get_global( 'use_ldap_email' ) == OFF ) { ?> 97 <tr> 98 <td class="category"> 99 <?php echo lang_get( 'email' ) ?> 100 </td> 101 <td> 102 <?php print_email_input( 'email', '' ) ?> 103 </td> 104 </tr><?php 105 } 106 if( OFF == config_get( 'send_reset_password' ) ) { ?> 107 <tr> 108 <td class="category"> 109 <?php echo lang_get( 'password' ) ?> 110 </td> 111 <td> 112 <input type="password" id="user-password" name="password" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /> 113 </td> 114 </tr> 115 <td class="category"> 116 <?php echo lang_get( 'verify_password' ) ?> 117 </td> 118 <td> 119 <input type="password" id="user-verify-password" name="password_verify" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /> 120 </td> 121 </tr><?php 122 } ?> 123 <tr> 124 <td class="category"> 125 <?php echo lang_get( 'access_level' ) ?> 126 </td> 127 <td> 128 <select id="user-access-level" name="access_level" class="input-sm"> 129 <?php print_project_access_levels_option_list( config_get( 'default_new_account_access_level' ) ) ?> 130 </select> 131 </td> 132 </tr> 133 <tr> 134 <td class="category"> 135 <?php echo lang_get( 'enabled' ) ?> 136 </td> 137 <td> 138 <label> 139 <input type="checkbox" class="ace" id="user-enabled" name="enabled" checked="checked"> 140 <span class="lbl"></span> 141 </label> 142 </td> 143 </tr> 144 <tr> 145 <td class="category"> 146 <?php echo lang_get( 'protected' ) ?> 147 </td> 148 <td> 149 <label> 150 <input type="checkbox" class="ace" id="user-protected" name="protected"> 151 <span class="lbl"></span> 152 </label> 153 </td> 154 </tr> 155 </fieldset> 156 </table> 157 </div> 158 </div> 159 </div> 160 161 <?php event_signal( 'EVENT_MANAGE_USER_CREATE_FORM' ) ?> 162 163 <div class="widget-toolbox padding-8 clearfix"> 164 <input type="submit" class="btn btn-primary btn-white btn-round" value="<?php echo lang_get( 'create_user_button' ) ?>" /> 165 </div> 166 </div> 167 </div> 168 </form> 169</div> 170 171<?php 172layout_page_end(); 173