<?php /* @type $Params string[] */ $imageType = $Params['ImageType']; $clusterIdentifier = isset( $Params['ClusterIdentifier'] ) ? $Params['ClusterIdentifier'] : ClusterTool::clusterIdentifier(); if( !ImagePathTool::supports($imageType) ) { eZDebug::writeError( "Requested image '{$imageType}' does not exists" ); header( 'HTTP/1.0 404 Not Found' ); eZExecution::cleanExit(); } $oldImagePath = ImagePathTool::getOldPath($clusterIdentifier, $imageType); $outputFile = ImagePathTool::getStaticPath($clusterIdentifier,$imageType); $fileUtils = eZClusterFileHandler::instance( $outputFile ); if( !$fileUtils->fileExists( $outputFile ) ) { if( !file_exists( $oldImagePath ) ) { $found = false; if( $fileUtils instanceof eZDFSFileHandler ) { $dfsRoot = eZINI::instance('file.ini')->variable( 'eZDFSClusteringSettings', 'MountPointPath' ); if( file_exists( $dfsRoot.'/'.$outputFile ) ) { $oldImagePath = $dfsRoot.'/'.$outputFile; $found = true; } }