[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 20 # -------------------------------------------------------- 21 # $Id: account_prof_edit_page.php,v 1.38.2.1 2007-10-13 22:32:13 giallu Exp $ 22 # -------------------------------------------------------- 23 ?> 24 <?php 25 # This page allows the user to edit his/her profile 26 # Changes get POSTed to account_prof_update.php 27 ?> 28 <?php 29 require_once ( 'core.php' ); 30 31 $t_core_path = config_get( 'core_path' ); 32 33 require_once( $t_core_path.'current_user_api.php' ); 34 require_once( $t_core_path.'profile_api.php' ); 35 ?> 36 <?php 37 auth_ensure_user_authenticated(); 38 39 current_user_ensure_unprotected(); 40 ?> 41 <?php 42 $f_profile_id = gpc_get_int( 'profile_id' ); 43 $f_action = gpc_get_string( 'action' ); 44 45 # If deleteing profile redirect to delete script 46 if ( 'delete' == $f_action) { 47 print_header_redirect( 'account_prof_delete.php?profile_id=' . $f_profile_id ); 48 } 49 # If Defaulting profile redirect to make default script 50 else if ( 'default' == $f_action ) { 51 print_header_redirect( 'account_prof_make_default.php?profile_id=' . $f_profile_id ); 52 } 53 54 if ( profile_is_global( $f_profile_id ) ) { 55 access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) ); 56 57 $row = profile_get_row( ALL_USERS, $f_profile_id ); 58 } else { 59 $row = profile_get_row( auth_get_current_user_id(), $f_profile_id ); 60 } 61 62 extract( $row, EXTR_PREFIX_ALL, 'v' ); 63 ?> 64 65 <?php html_page_top1() ?> 66 <?php html_page_top2() ?> 67 68 <?php 69 if ( profile_is_global( $f_profile_id ) ) { 70 print_manage_menu(); 71 } 72 ?> 73 74 <?php # Edit Profile Form BEGIN ?> 75 <br /> 76 <div align="center"> 77 <form method="post" action="account_prof_update.php"> 78 <table class="width75" cellspacing="1"> 79 <tr> 80 <td class="form-title"> 81 <input type="hidden" name="profile_id" value="<?php echo $v_id ?>" /> 82 <?php echo lang_get( 'edit_profile_title' ) ?> 83 </td> 84 <td class="right"> 85 <?php 86 if ( !profile_is_global( $f_profile_id ) ) { 87 print_account_menu(); 88 } 89 ?> 90 </td> 91 </tr> 92 <tr class="row-1"> 93 <td class="category" width="25%"> 94 <span class="required">*</span><?php echo lang_get( 'platform' ) ?> 95 </td> 96 <td width="75%"> 97 <input type="text" name="platform" size="32" maxlength="32" value="<?php echo string_attribute( $v_platform ) ?>" /> 98 </td> 99 </tr> 100 <tr class="row-2"> 101 <td class="category"> 102 <span class="required">*</span><?php echo lang_get( 'operating_system' ) ?> 103 </td> 104 <td> 105 <input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" /> 106 </td> 107 </tr> 108 <tr class="row-1"> 109 <td class="category"> 110 <span class="required">*</span><?php echo lang_get( 'version' ) ?> 111 </td> 112 <td> 113 <input type="text" name="os_build" size="16" maxlength="16" value="<?php echo string_attribute( $v_os_build ) ?>" /> 114 </td> 115 </tr> 116 <tr class="row-2"> 117 <td class="category"> 118 <?php echo lang_get( 'additional_description' ) ?> 119 </td> 120 <td> 121 <textarea name="description" cols="60" rows="8"><?php echo string_textarea( $v_description ) ?></textarea> 122 </td> 123 </tr> 124 <tr> 125 <td class="center" colspan="2"> 126 <input type="submit" class="button" value="<?php echo lang_get( 'update_profile_button' ) ?>" /> 127 </td> 128 </tr> 129 </table> 130 </form> 131 </div> 132 <?php # Edit Profile Form END ?> 133 134 <?php html_page_bottom1( __FILE__ ) ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |