(dv):Update timthumb.php
- This page was last modified on March 26, 2012, at 15:54.
From (mt) Community Wiki
Contents |
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.
Overview
Many (mt) Media Temple customers wanted a way to update outdated timthumb.php files on their services.
Instructions
Now, this is possible with the following commands.
cd /root/; wget -O timthumb.php http://timthumb.googlecode.com/svn/trunk/timthumb.php && chmod 644 timthumb.php && find /var/www/vhosts/ -maxdepth 10 \( -name "timthumb.php" -o -name "thumb.php" \) -exec cp {} {}.bak \; -exec cp timthumb.php {} \; -exec egrep -Hn "'VERSION'|\"VERSION\"" '{}' \;
See also
We also have a script available that will scan your directories to find all instances of timthumb that are older than version 2.8.