lib = $lib; $this->db = $this->lib->game->db; } // Invalidates the fleet cache function invCache($id = null) { if (is_null($id)) { $this->fleets = array(); } else { $this->fleets[$id] = null; } } // Renames a fleet function rename($fid, $name) { $n = addslashes($name); $this->db->query("UPDATE fleet SET name='$n' WHERE id=$fid"); $this->fleets[$fid] = null; } } ?>