*
 *****************/
$map_info = new map_info($uid);
$fog_of_war = $map_info->get_fog_of_war();
if (!in_array($sid, $map_info->get_scanned_systems()) && !$fog_of_war[$sid]) {
    return false;
}
if (!in_array($sid, $map_info->get_scanned_systems())) {
    $fog_mode = true;
} else {
    $fog_mode = false;
}
if ($fog_mode) {
    $planets = array_values($fog_of_war[$sid]);
} else {
    $planets = $map_info->get_systemplanets($sid);
}
$globalTransform = get_global_SVGTransform($uid, 1, $sid, $availHeight, $availWidth);
$abstand = 30;
$inner_moves = array();
echo "<g id=\"planets" . $sid . "\" transform=\"translate(" . $globalTransform . ")\"" . ($fog_mode ? " fogged=\"1\" style=\"opacity:0.5\"" : " fogged=\"0\"") . ">";
if (is_array($planets)) {
    $planet_count = sizeof($planets) + 1;
    $max_size = $planet_count * $abstand + 10;
    echo "<g class=\"displayMarker\">";
    echo "<path d=\"M-10,0 v-10 h10\"/>";
    echo "<path d=\"M10,0 v10 h-10\"/>";
    echo "</g>";
    echo "<g pointer-events=\"none\" class=\"planetsOrbits\">\n";
    for ($j = 1; $j < $planet_count; $j++) {
        echo "<circle cx=\"0\" cy=\"0\" r=\"" . $abstand * ($j + 1) . "\"/>\n";