view = $path["view"] . "fusion.php"; $s = "SELECT DISTINCT target " . "FROM fusion " . "ORDER BY target_stars DESC; "; $q = $this->db->query($s); while ($r = $q->fetchArray(SQLITE3_ASSOC)){ array_push($this->fusion, new Fusion($this->db, $r["target"])); } $s = "SELECT id " . "FROM collection " . "WHERE level <> 0 " . "ORDER BY " . " stars DESC, " . " level DESC; "; $q = $this->db->query($s); while ($r = $q->fetchArray(SQLITE3_ASSOC)){ array_push($this->collection, new Collection($this->db, $r["id"])); } $this->title = "Fusion - SWDB"; $this->description = "Fusion chart"; $this->canonical = $root . "fusion/"; } } ?>