| [ 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 * CALLERS 19 * This page is called from: 20 * - print_account_menu() 21 * - header redirects from account_*.php 22 * 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 27 * 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) 32 * 33 * RESTRICTIONS & PERMISSIONS 34 * - User must be authenticated 35 * - The user's account must not be protected 36 * 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 41 * 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 47 */ 48 49 /** 50 * MantisBT Core API's 51 */ 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' ); 57 58 #============ Parameters ============ 59 # (none) 60 61 #============ Permissions ============ 62 auth_ensure_user_authenticated(); 63 64 current_user_ensure_unprotected(); 65 66 define( 'ACCOUNT_PREFS_INC_ALLOW', true ); 67 include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'account_prefs_inc.php' ); 68 69 html_page_top( lang_get( 'change_preferences_link' ) ); 70 71 edit_account_prefs(); 72 73 html_page_bottom();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Sep 8 22:46:58 2010 | Cross-referenced by PHPXref 0.7 |