getUserDetails($user); switch ($action) { case 'edit': include '../app/templates/profile-edit.php'; break; default: include '../app/templates/profile.php'; } ?>