Former principal sentenced to prison