コード例 #1
0
ファイル: Sac.php プロジェクト: rolfvandervleuten/DeepskyLog
                                        $type = "AA4STAR";
                                    } else {
                                        if ($type == "8STAR") {
                                            $type = "AA8STAR";
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        if ($previous != $object) {
            if ($object != "Eridanus Cluster" && $object != "Coalsack" && $object != "Lg Magellanic Cl" && $object != "Wild's triplet" && $object != "Zwicky's triplet" && $object != "Pal 9" && $object != "NGC 4153") {
                $obj->addDSObject($object, $other, $type, $con, $ra, $dec, $mag, $subr, $size_max, $size_min, $pa, $bchm, "SAC7.2");
            }
            $previous = $object;
        }
    }
}
fclose($fh);
include_once "../lib/database.php";
$db = new database();
$db->login();
$sql = "delete from objects where name = \"NGC 4560\";";
$run = mysql_query($sql) or die(mysql_error());
$sql = "delete from objects where name = \"NGC 4610\";";
$run = mysql_query($sql) or die(mysql_error());
$sql = "delete from objects where name = \"NGC 4407\";";
$run = mysql_query($sql) or die(mysql_error());