What I found most depressing about this post were the comments. Yes, it's bad code. But just declaring that it's bad code isn't at all productive.
What would be useful is a breakdown of where problems exist, even in brief, and what the problem was; pointing out where it fails in each area. That would be a potential learning/teaching tool. Right now, it's just an easily forgotten "WTF" that more experienced coders can use to feel good about themselves.