Fix #11417: Allow EVENT_MENU_MAIN plugin events to return null
[mantis/radio.git] / account_prefs_page.php
blob78e580a0ab2398397ad7f6c5cce34c82e74dcb00
1 <?php
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/>.
17 /**
18 * CALLERS
19 * This page is called from:
20 * - print_account_menu()
21 * - header redirects from account_*.php
23 * EXPECTED BEHAVIOUR
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
28 * CALLS
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
37 * @package MantisBT
38 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
39 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
40 * @link http://www.mantisbt.org
42 * @uses core.php
43 * @uses authentication_api.php
44 * @uses current_user_api.php
45 * @uses html_api.php
46 * @uses lang_api.php
49 require_once( 'core.php' );
50 require_api( 'authentication_api.php' );
51 require_api( 'current_user_api.php' );
52 require_api( 'html_api.php' );
53 require_api( 'lang_api.php' );
55 #============ Parameters ============
56 # (none)
58 #============ Permissions ============
59 auth_ensure_user_authenticated();
61 current_user_ensure_unprotected();
63 include( 'account_prefs_inc.php' );
65 html_page_top( lang_get( 'change_preferences_link' ) );
67 edit_account_prefs();
69 html_page_bottom();