Pastebinlink: http://pastebin.ca/1537472 since WP striped out the php tags in my post.. Should have seen that one coming…