Yes, it’s wonky. And it will stay wonky for a little while, there’s clearly some compromised files — spam stuff getting inserted into PHP files wrecking everything.
I have upgraded to 2.5, and everything seems to be working correctly. For now, anyway.