Former president sentenced to five years in prison