if (!defined('WEBSHOT_PROXY')) { define('WEBSHOT_PROXY', ''); } //In case you're behind a proxy server. if (!defined('WEBSHOT_XVFB_RUNNING')) { define('WEBSHOT_XVFB_RUNNING', false); } //ADVANCED: Enable this if you've got Xvfb running in the background. // If ALLOW_EXTERNAL is true and ALLOW_ALL_EXTERNAL_SITES is false, then external images will only be fetched from these domains and their subdomains. if (!isset($ALLOWED_SITES)) { $ALLOWED_SITES = array('flickr.com', 'staticflickr.com', 'picasa.com', 'img.youtube.com', 'upload.wikimedia.org', 'photobucket.com', 'imgur.com', 'imageshack.us', 'tinypic.com'); } // ------------------------------------------------------------- // -------------- STOP EDITING CONFIGURATION HERE -------------- // ------------------------------------------------------------- Timthumb::start(); /** * Class timthumb */ class Timthumb { protected $src = ''; protected $is404 = false; protected $docRoot = ''; protected $lastURLError = false; protected $localImage = ''; protected $localImageMTime = 0.0; protected $url = false; protected $myHost = ''; protected $isURL = false; protected $cachefile = '';