[ 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_delete.php,v 1.30.22.1 2007-10-13 22:31:56 giallu Exp $ 22 # -------------------------------------------------------- 23 24 # CALLERS 25 # This page is called from: 26 # - account_page.php 27 28 # EXPECTED BEHAVIOUR 29 # - Delete the currently logged in user account 30 # - Logout the current user 31 # - Redirect to the page specified in the logout_redirect_page config option 32 33 # CALLS 34 # This page conditionally redirects upon completion 35 36 # RESTRICTIONS & PERMISSIONS 37 # - User must be authenticated 38 # - allow_account_delete config option must be enabled 39 40 require_once ( 'core.php' ); 41 42 #============ Parameters ============ 43 # (none) 44 45 #============ Permissions ============ 46 auth_ensure_user_authenticated(); 47 48 current_user_ensure_unprotected(); 49 50 if ( OFF == config_get( 'allow_account_delete' ) ) { 51 print_header_redirect( 'account_page.php' ); 52 } 53 ?> 54 <?php 55 helper_ensure_confirmed( lang_get( 'confirm_delete_msg' ), 56 lang_get( 'delete_account_button' ) ); 57 58 user_delete( auth_get_current_user_id() ); 59 60 auth_logout(); 61 62 $t_redirect = config_get( 'logout_redirect_page' ); 63 64 html_meta_redirect( $t_redirect ); 65 66 html_page_top1(); 67 68 ?> 69 70 <br /> 71 <div align="center"> 72 <?php 73 echo lang_get( 'operation_successful' ) . '<br />'; 74 print_bracket_link( $t_redirect, lang_get( 'proceed' ) ); 75 ?> 76 </div> 77 78 <?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 |
![]() |