Yeah the most confusing thing to me is how the hell code that bad ever got so big.
It’s literally my go-to example of why the MVC design pattern is so good for web development. There is basically no view/controller separation - you can change core behavior of the backend in a template.