All fines and forfeitures for the violation of ordinances and all money collected for licenses or otherwise shall be paid into the treasury of the city at such times and in such manner as may be prescribed by ordinance.