| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
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 * @package MantisBT 19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 20 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 21 * @link http://www.mantisbt.org 22 * 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 33 */ 34 35 /** 36 * MantisBT Core API's 37 */ 38 require_once ( 'core.php' ); 39 require_api( 'access_api.php' ); 40 require_api( 'authentication_api.php' ); 41 require_api( 'config_api.php' ); 42 require_api( 'constant_inc.php' ); 43 require_api( 'form_api.php' ); 44 require_api( 'helper_api.php' ); 45 require_api( 'html_api.php' ); 46 require_api( 'lang_api.php' ); 47 require_api( 'print_api.php' ); 48 49 auth_reauthenticate(); 50 51 access_ensure_global_level( config_get( 'manage_user_threshold' ) ); 52 53 $t_ldap = ( LDAP == config_get( 'login_method' ) ); 54 55 html_page_top(); 56 57 print_manage_menu( 'manage_user_create_page.php' ); 58 ?> 59 <div id="manage-user-create-div" class="form-container"> 60 <form id="manage-user-create-form" method="post" action="manage_user_create.php"> 61 <fieldset> 62 <legend><span><?php echo lang_get( 'create_new_account_title' ) ?></span></legend> 63 <?php echo form_security_field( 'manage_user_create' ) ?> 64 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 65 <label for="user-username"><span><?php echo lang_get( 'username' ) ?></span></label> 66 <span class="input"><input type="text" id="user-username" name="username" size="32" maxlength="<?php echo USERLEN;?>" /></span> 67 <span class="label-style"></span> 68 </div><?php 69 if ( !$t_ldap || config_get( 'use_ldap_realname' ) == OFF ) { ?> 70 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 71 <label for="user-realname"><span><?php echo lang_get( 'realname' ) ?></span></label> 72 <span class="input"><input type="text" id="user-realname" name="realname" size="32" maxlength="<?php echo REALLEN;?>" /></span> 73 <span class="label-style"></span> 74 </div><?php 75 } 76 if ( !$t_ldap || config_get( 'use_ldap_email' ) == OFF ) { ?> 77 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 78 <label for="email-field"><span><?php echo lang_get( 'email' ) ?></span></label> 79 <span class="input"><?php print_email_input( 'email', '' ) ?></span> 80 <span class="label-style"></span> 81 </div><?php 82 } 83 84 if ( OFF == config_get( 'send_reset_password' ) ) { ?> 85 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 86 <label for="user-password"><span><?php echo lang_get( 'password' ) ?></span></label> 87 <span class="input"><input type="password" id="user-password" name="password" size="32" maxlength="<?php echo PASSLEN;?>" /></span> 88 <span class="label-style"></span> 89 </div> 90 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 91 <label for="user-verify-password"><span><?php echo lang_get( 'verify_password' ) ?></span></label> 92 <span class="input"><input type="password" id="user-verify-password" name="password_verify" size="32" maxlength="<?php echo PASSLEN;?>" /></span> 93 <span class="label-style"></span> 94 </div><?php 95 } ?> 96 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 97 <label for="user-access-level"><span><?php echo lang_get( 'access_level' ) ?></span></label> 98 <span class="select"> 99 <select id="user-access-level" name="access_level"> 100 <?php print_project_access_levels_option_list( config_get( 'default_new_account_access_level' ) ) ?> 101 </select> 102 </span> 103 <span class="label-style"></span> 104 </div> 105 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 106 <label for="user-enabled"><span><?php echo lang_get( 'enabled' ) ?></span></label> 107 <span class="checkbox"><input type="checkbox" id="user-enabled" name="enabled" checked="checked" /></span> 108 <span class="label-style"></span> 109 </div> 110 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 111 <label for="user-protected"><span><?php echo lang_get( 'protected' ) ?></span></label> 112 <span class="checkbox"><input type="checkbox" id="user-protected" name="protected" /></span> 113 <span class="label-style"></span> 114 </div> 115 <span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'create_user_button' ) ?>" /></span> 116 </fieldset> 117 </form> 118 </div> 119 120 <?php 121 html_page_bottom();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |