2 # MantisBT - A PHP based bugtracking system
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.
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.
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/>.
19 * This page is called from:
20 * - print_account_menu()
21 * - header redirects from account_*.php
24 * - Display the user's current preferences
25 * - Allow the user to edit the preferences
26 * - Provide the option of saving changes or resetting to default values
29 * This page calls the following pages:
30 * - acount_prefs_update.php (to save changes)
31 * - account_prefs_reset.php (to reset preferences to default values)
33 * RESTRICTIONS & PERMISSIONS
34 * - User must be authenticated
35 * - The user's account must not be protected
38 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
39 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
40 * @link http://www.mantisbt.org
43 * @uses authentication_api.php
44 * @uses current_user_api.php
52 require_once( 'core.php' );
53 require_api( 'authentication_api.php' );
54 require_api( 'current_user_api.php' );
55 require_api( 'html_api.php' );
56 require_api( 'lang_api.php' );
58 #============ Parameters ============
61 #============ Permissions ============
62 auth_ensure_user_authenticated();
64 current_user_ensure_unprotected();
66 define( 'ACCOUNT_PREFS_INC_ALLOW', true );
67 include( dirname( __FILE__
) . DIRECTORY_SEPARATOR
. 'account_prefs_inc.php' );
69 html_page_top( lang_get( 'change_preferences_link' ) );