3 && !str_ends_with($parts[0], "e") && $parts[0] !== "Filly" && $parts[0] !== "Windy" && (isset($parts[1]) && $parts[1] !== "Brightdawn")) {
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;
}
$member["system"] = $member["_system"] = $system;
return $member;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/planner.inc"; ?>