Terrible PHP web apps are terrible to try and fix.