Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 119 lines (106 sloc) 3.454 kb
bd552ac Renamed files to .php
Kenzaburo Ito authored
1 <?php
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
2 # MantisBT - a php based bugtracking system
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
3
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
4 # MantisBT is free software: you can redistribute it and/or modify
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
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 #
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
9 # MantisBT is distributed in the hope that it will be useful,
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
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
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
7c26869 add ID headers to these files
Julian Fitzell authored
16
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
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
c757c81 @dregad Update copyright year to 2012
dregad authored
23 * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
24 * @link http://www.mantisbt.org
25 */
26 /**
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
27 * MantisBT Core API's
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
28 */
9eff4d3 First commit in an effort to reduce the number of API files opened at…
Jeroen Latour authored
29 require_once( 'core.php' );
638dcd0 Fixed inconsistencies in line-endings
Jeroen Latour authored
30
c36df5b @grangeway following giallu's change to use set_include_path to set first requir…
grangeway authored
31 require_once( 'current_user_api.php' );
32 require_once( 'profile_api.php' );
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
33
0370da8 So finally, 2 days later, here is the access_api rewrite. I've teste…
Julian Fitzell authored
34 auth_ensure_user_authenticated();
638dcd0 Fixed inconsistencies in line-endings
Jeroen Latour authored
35
0370da8 So finally, 2 days later, here is the access_api rewrite. I've teste…
Julian Fitzell authored
36 current_user_ensure_unprotected();
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
37
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
38 $f_profile_id = gpc_get_int( 'profile_id' );
bd552ac Renamed files to .php
Kenzaburo Ito authored
39
7da1fe7 Enh #3070: Standard Profiles for all users to use
Jeroen Latour authored
40 if ( profile_is_global( $f_profile_id ) ) {
41 access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) );
42
43 $row = profile_get_row( ALL_USERS, $f_profile_id );
44 } else {
45 $row = profile_get_row( auth_get_current_user_id(), $f_profile_id );
46 }
502df92 partial cleanup of account_prof_*.php
Julian Fitzell authored
47
1436f24 Cleanup the user profile pages and add profile_api
Julian Fitzell authored
48 extract( $row, EXTR_PREFIX_ALL, 'v' );
49
230e3f4 @grangeway HTML api documentation + tidy up of api names
grangeway authored
50 html_page_top();
bd552ac Renamed files to .php
Kenzaburo Ito authored
51
7da1fe7 Enh #3070: Standard Profiles for all users to use
Jeroen Latour authored
52 if ( profile_is_global( $f_profile_id ) ) {
53 print_manage_menu();
54 }
55 ?>
56
bd552ac Renamed files to .php
Kenzaburo Ito authored
57 <?php # Edit Profile Form BEGIN ?>
9655dec changed P tags to BR. This will format better across more browsers. …
Kenzaburo Ito authored
58 <br />
bd552ac Renamed files to .php
Kenzaburo Ito authored
59 <div align="center">
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
60 <form method="post" action="account_prof_update.php">
ba1b022 @giallu Port profiles code refactoring from BRANCH_1_1_0
giallu authored
61 <?php echo form_security_field( 'profile_update' )?>
0d29617 @grangeway HTML validation
grangeway authored
62 <input type="hidden" name="action" value="update" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
63 <table class="width75" cellspacing="1">
64 <tr>
65 <td class="form-title">
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
66 <input type="hidden" name="profile_id" value="<?php echo $v_id ?>" />
502df92 partial cleanup of account_prof_*.php
Julian Fitzell authored
67 <?php echo lang_get( 'edit_profile_title' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
68 </td>
69 <td class="right">
7da1fe7 Enh #3070: Standard Profiles for all users to use
Jeroen Latour authored
70 <?php
71 if ( !profile_is_global( $f_profile_id ) ) {
72 print_account_menu();
73 }
74 ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
75 </td>
76 </tr>
77 <tr class="row-1">
78 <td class="category" width="25%">
1af0716 @vboctor Fix #3330: "Required" fields on Account Profile page.
vboctor authored
79 <span class="required">*</span><?php echo lang_get( 'platform' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
80 </td>
81 <td width="75%">
615dfef This commit attempts to clean up the string output escaping a bit.
Julian Fitzell authored
82 <input type="text" name="platform" size="32" maxlength="32" value="<?php echo string_attribute( $v_platform ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
83 </td>
84 </tr>
85 <tr class="row-2">
86 <td class="category">
1af0716 @vboctor Fix #3330: "Required" fields on Account Profile page.
vboctor authored
87 <span class="required">*</span><?php echo lang_get( 'operating_system' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
88 </td>
89 <td>
615dfef This commit attempts to clean up the string output escaping a bit.
Julian Fitzell authored
90 <input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
91 </td>
92 </tr>
93 <tr class="row-1">
94 <td class="category">
7b1cf36 @jreese Use string os_version for platform version
jreese authored
95 <span class="required">*</span><?php echo lang_get( 'os_version' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
96 </td>
97 <td>
615dfef This commit attempts to clean up the string output escaping a bit.
Julian Fitzell authored
98 <input type="text" name="os_build" size="16" maxlength="16" value="<?php echo string_attribute( $v_os_build ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
99 </td>
100 </tr>
101 <tr class="row-2">
102 <td class="category">
502df92 partial cleanup of account_prof_*.php
Julian Fitzell authored
103 <?php echo lang_get( 'additional_description' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
104 </td>
105 <td>
cff357b @giallu XHTML validation fix.
giallu authored
106 <textarea name="description" cols="60" rows="8"><?php echo string_textarea( $v_description ) ?></textarea>
bd552ac Renamed files to .php
Kenzaburo Ito authored
107 </td>
108 </tr>
109 <tr>
110 <td class="center" colspan="2">
ff82370 Enh #3735: New CSS class for HTML Form Buttons
Jeroen Latour authored
111 <input type="submit" class="button" value="<?php echo lang_get( 'update_profile_button' ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
112 </td>
113 </tr>
114 </table>
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
115 </form>
bd552ac Renamed files to .php
Kenzaburo Ito authored
116 </div>
230e3f4 @grangeway HTML api documentation + tidy up of api names
grangeway authored
117 <?php
624fafd @grangeway We dont use __FILE__ param of html_page_bottom. Note: someone who wer…
grangeway authored
118 html_page_bottom();
Something went wrong with that request. Please try again.