id");
if (!$result) {
error_page("couldn't delete profile - please try again later");
}
delete_user_pictures($user->id);
page_head("Delete Confirmation");
$user->update("has_profile=0");
echo "Your profile has been deleted
";
page_tail();
}
$user = get_logged_in_user();
if (isset($_POST['delete']) && $_POST['delete']) {
delete_profile($user);
exit();
}
page_head("Profile delete confirmation");
echo "