lib = $lib; $this->db = $this->lib->game->db; } public function run($playerID, $planetID) { $q = $this->db->query( "SELECT p.id FROM planet p, pk_sys_status s " . "WHERE p.id = $planetID AND s.system = p.system " . "AND s.status = 'O' AND s.player = $playerID" ); return dbCount($q) == 1; } } ?>