The treasurer shall receive all monies belonging to the state, and disburse the same only as he may be directed by law. He shall pay no warrant, or order for the disbursement of public money, until the same has been registered in the office of the comptroller.