Skip navigation.
Home

archives

I am WTF Seven of Nine of "Ternary" Adjunct...

Fugly Code

Thanks to Alex @ TheDailyWTF for forwarding this WTF to me. The WTF is originally from James who found it as a patch for OSCommerce. OSCommerce is one of the most popular and oldest PHP projects. The project started out under a different name but it became popular enough that the project was renamed and remarketed as OSCommerce.

James said:
This patch (attached) for the popular OScommerce shopping cart software adds the functionality to resize images to thumbnail size on demand and cache it for later use. It works - but oh my!