'Profile not found']); } exit; } // Redirect to index if accessed directly header('Location: index.php');