All magistrates shall receive salaries in lieu of all fees and costs in civil or criminal actions or proceedings, and all such fees and costs received and recovered under the provisions of this article by any magistrate of any county shall be accounted for and paid into the general fund of the county as directed by the governing body thereof.