Teacher with Phoenix ties gets 25 years for child porn