= $cache_life)) { ob_start(); $ctx = stream_context_create(array( 'http' => array( 'timeout' => $cache_source_timeout ) )); $geti = @file_get_contents($cache_source, 0, $ctx); if ($geti) { file_put_contents($cache_file,$geti); } else { // offline .. re-use old image and watermark it // file_put_contents($cache_file,@file_get_contents($cache_file)); // this is to update last change to prevent rechecks file_put_contents($cache_file,"-/-"); // this is to update last change to prevent rechecks // echo ":"; } header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($cache_file)).' GMT', true, 200); header('Cache-Control: no-store, no-cache, must-revalidate'); } else { // file_put_contents($cache_file,@file_get_contents($cache_file)); // echo "."; } if ((isset($_REQUEST['li']))&&($_REQUEST['li']=="true")) { echo ""; } ob_flush();