Any officer, clerk, or employe of such city, or of any department, trust, or commission thereof, violating any of the provisions of this article, shall be immediately dismissed by the mayor or by the head of the department, trust, or commission in which he is employed. The employment of any police officer or fireman after such violation is hereby made illegal, and, at the suit of any taxpayer of the city, the courts shall upon bill filed and proof of such violation, decree the employment illegal and to restrain the payment of any compensation to the offender accruing after such violation. Any person dismissed under this section shall be ineligible for reappointment within two years to any position in the service of such city.
53 P.S. § 12644