This ordinance shall be enforced by the building and zoning inspector. No permit or certificate of occupancy provided for in this ordinance shall be granted by such inspector for any purpose except in compliance with the provisions of this ordinance, or with a decision of the governing authority or the courts.