. #------------------------------ # $Revision: 2643 $ # $Author: al $ # $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $ #------------------------------ # CALLERS # This page is called from: # - account_page.php # EXPECTED BEHAVIOUR # - Delete the currently logged in user account # - Logout the current user # - Redirect to the page specified in the logout_redirect_page config option # CALLS # This page conditionally redirects upon completion # RESTRICTIONS & PERMISSIONS # - User must be authenticated # - allow_account_delete config option must be enabled require_once( 'core.php' ); #============ Parameters ============ # (none) #============ Permissions ============ # helper_ensure_post(); auth_ensure_user_authenticated(); current_user_ensure_unprotected(); if ( OFF == config_get( 'allow_account_delete' ) ) { print_header_redirect( 'account_page.php' ); } ?>