A teacher who held senior roles at prestigious private schools has been accused of operating a child abuse website and grooming.