| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| require_once( 'core.php' ); |
| |
| |
| |
| |
| |
| |
| |
| auth_ensure_user_authenticated(); |
| |
| current_user_ensure_unprotected(); |
| |
| if ( OFF == config_get( 'allow_account_delete' ) ) { |
| print_header_redirect( 'account_page.php' ); |
| } |
| ?> |
| <?php |
| helper_ensure_confirmed( lang_get( 'confirm_delete_msg' ), |
| lang_get( 'delete_account_button' ) ); |
| |
| user_delete( auth_get_current_user_id() ); |
| |
| auth_logout(); |
| |
| $t_redirect = config_get( 'logout_redirect_page' ); |
| |
| html_meta_redirect( $t_redirect ); |
| |
| html_page_top1(); |
| |
| ?> |
| |
| <div id="message" class="green"> |
| <?php |
| echo '<p>' . lang_get( 'operation_successful' ) . '</p>'; |
| print_bracket_link( $t_redirect, lang_get( 'proceed' ) ); |
| ?> |
| </div> |
| |
| <?php html_page_bottom1( __FILE__ ) ?> |