| [ 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 * This page allows the user to edit his/her profile 19 * Changes get POSTed to account_prof_update.php 20 * 21 * @package MantisBT 22 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 23 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net 24 * @link http://www.mantisbt.org 25 * 26 * @uses core.php 27 * @uses access_api.php 28 * @uses authentication_api.php 29 * @uses config_api.php 30 * @uses constant_inc.php 31 * @uses current_user_api.php 32 * @uses form_api.php 33 * @uses gpc_api.php 34 * @uses html_api.php 35 * @uses lang_api.php 36 * @uses profile_api.php 37 * @uses string_api.php 38 */ 39 40 /** 41 * MantisBT Core API's 42 */ 43 require_once ( 'core.php' ); 44 require_api( 'access_api.php' ); 45 require_api( 'authentication_api.php' ); 46 require_api( 'config_api.php' ); 47 require_api( 'constant_inc.php' ); 48 require_api( 'current_user_api.php' ); 49 require_api( 'form_api.php' ); 50 require_api( 'gpc_api.php' ); 51 require_api( 'html_api.php' ); 52 require_api( 'lang_api.php' ); 53 require_api( 'profile_api.php' ); 54 require_api( 'string_api.php' ); 55 56 if ( !config_get( 'enable_profiles' ) ) { 57 trigger_error( ERROR_ACCESS_DENIED, ERROR ); 58 } 59 60 auth_ensure_user_authenticated(); 61 62 current_user_ensure_unprotected(); 63 64 $f_profile_id = gpc_get_int( 'profile_id' ); 65 66 if ( profile_is_global( $f_profile_id ) ) { 67 access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) ); 68 69 $row = profile_get_row( ALL_USERS, $f_profile_id ); 70 } else { 71 $row = profile_get_row( auth_get_current_user_id(), $f_profile_id ); 72 } 73 74 extract( $row, EXTR_PREFIX_ALL, 'v' ); 75 76 html_page_top(); 77 78 if ( profile_is_global( $f_profile_id ) ) { 79 print_manage_menu(); 80 } 81 ?> 82 83 <?php # Edit Profile Form BEGIN ?> 84 <br /> 85 <div align="center"> 86 <form method="post" action="account_prof_update.php"> 87 <?php echo form_security_field( 'profile_update' )?> 88 <input type="hidden" name="action" value="update" /> 89 <table class="width75" cellspacing="1"> 90 <tr> 91 <td class="form-title"> 92 <input type="hidden" name="profile_id" value="<?php echo $v_id ?>" /> 93 <?php echo lang_get( 'edit_profile_title' ) ?> 94 </td> 95 <td class="right"> 96 <?php 97 if ( !profile_is_global( $f_profile_id ) ) { 98 print_account_menu(); 99 } 100 ?> 101 </td> 102 </tr> 103 <tr class="row-1"> 104 <th class="category" width="25%"> 105 <span class="required">*</span><?php echo lang_get( 'platform' ) ?> 106 </th> 107 <td width="75%"> 108 <input type="text" name="platform" size="32" maxlength="32" value="<?php echo string_attribute( $v_platform ) ?>" /> 109 </td> 110 </tr> 111 <tr class="row-2"> 112 <th class="category"> 113 <span class="required">*</span><?php echo lang_get( 'operating_system' ) ?> 114 </th> 115 <td> 116 <input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" /> 117 </td> 118 </tr> 119 <tr class="row-1"> 120 <th class="category"> 121 <span class="required">*</span><?php echo lang_get( 'os_version' ) ?> 122 </th> 123 <td> 124 <input type="text" name="os_build" size="16" maxlength="16" value="<?php echo string_attribute( $v_os_build ) ?>" /> 125 </td> 126 </tr> 127 <tr class="row-2"> 128 <th class="category"> 129 <?php echo lang_get( 'additional_description' ) ?> 130 </th> 131 <td> 132 <textarea name="description" cols="60" rows="8"><?php echo string_textarea( $v_description ) ?></textarea> 133 </td> 134 </tr> 135 <tr> 136 <td class="center" colspan="2"> 137 <input type="submit" class="button" value="<?php echo lang_get( 'update_profile_button' ) ?>" /> 138 </td> 139 </tr> 140 </table> 141 </form> 142 </div> 143 <?php 144 html_page_bottom();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Sep 3 00:31:45 2010 | Cross-referenced by PHPXref 0.7 |