1. Every person who,—(1) Directly or indirectly, shall promise, offer, give or furnish, or cause or abet in causing to be promised, offered, given or furnished, in whole or in part, to any member of the council of any city or town municipality, or to any officer of such municipality, before or after he shall have been qualified and have taken his seat or entered upon his duty, any money, goods, right of action or other thing, or anything of value, or any pecuniary advantage, present or prospective, or a share in any contract or undertaking, with intent to influence his vote, opinion, judgment or action, on any question, matter, cause or proceeding which may then be pending or may by law be at any time brought before him in his official capacity; or
(2) Shall accept any gift, promise or undertaking, under any understanding that his vote, opinion, judgment or action shall be influenced thereby in any question, matter, cause or proceeding then pending or which may by law be brought before him in his official capacity,—Shall, upon conviction thereof before a competent court, be disqualified from holding any public office in the said council or under the control thereof, for five years.