3 && !str_ends_with($parts[0], "e") && $parts[0] !== "Filly") { if (str_contains($parts[0], "/")) { return explode("/", $parts[0])[0]; } else { return $parts[0]; } } else { return $name; } } function getSystemMember(string $system, string $id) { $systemID = $system; $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID-members.json"), true); $member = null; foreach ($members as $m) { if ($m["id"] === $id) $member = $m; } return $member; } require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/planner.php"; ?>