I think you are correct imageconstrux about your speculation
But knowing FireFly and his knowledge of PHP, this is most certainly useful.. Btw, taking under consideration what this hack does, I will tell you this. The hack is made to instead of showing the attachment on the actual thread if it is an image, it provides you a link where you click on it and opens you a page where you can see it in full size
Hope this info helps