100) { $quality = ''; } else { $value['jpg_quality'] = $quality; } } else { $quality = ''; } if($width) { $value["max_width"] = $width; } else { $width = ''; } if($height) { $value["max_height"] = $height; } else { $height = ''; } $value['target_ext'] = $ext; $value['image_name'] = $hash . '.' . $ext; $value['image_name'] = $hash . '.' . $ext; $value['thumb_name'] = md5($hash.$width.$height.$phpwcms['sharpen_level'].$crop.$quality); $value['crop_image'] = $crop; $image = get_cached_image( $value, false, false ); if(!empty($image[0])) { headerRedirect(PHPWCMS_URL.PHPWCMS_IMAGES.$image[0], 301); } } } } // something did not work - redirect to transparent pixel image headerRedirect(PHPWCMS_URL.'img/leer.gif', 301); ?>