he same powers, jurisdiction and duties, except as it shall be hereafter otherwise lawfully provided by charter, as are now conferred upon the justice and/or judge of the courts, first above mentioned in this proviso, and except as it is hereafter otherwise lawfully provided by charter, all of the provisions of the present law, whether general or special, applying to any such city and relating to