Any person violating any provisions of this article shall, upon conviction before the judge of the county magistrates court or such other court as may then have jurisdiction of the matter, be punished as provided in section 1-12.