deactivate(); if(!$success) throw new Exception(_("Failed to deactivate account. Please try again later.")); Core::addAlert("success", _("Deactivated account successfully.")); HTTP::redirect("/account"); } catch(Exception $e) { Core::addAlert("danger", $e->getMessage()); } } View::includeOnce("header", compact("page_title")); View::include("account_deactivate"); View::includeOnce("footer"); ?>