getPaths($fileName); //$cache->set($fileName, $paths, 0, Olio::$config['cacheExpire']); $path_keys = array_keys($paths); $pathkeycount = count($path_keys); $i=0; while ($i < $pathkeycount) { if (!($paths[$path_keys[$i]] == "")) { readfile($paths[$path_keys[$i]]); break; } else { $i++; } } } else { $contentType = $mimeTypes['gif']; header('Content-Type: ' . $contentType); readfile(Olio::$config['includes'] . 'notavailable.gif'); } // }else{ // $path_keys = array_keys($memcachegetPaths); // $pathkeycount = count($path_keys); // $i=0; // while($i < $pathkeycount) { // If(!($paths[$path_keys[$i]] == "") ) { // readfile($paths[$path_keys[$i]]); // break; // }else{ // $i++; // } // } // } // if ($cacheFlag == "true"){ // $cache->set($filename, file_get_contents($filename), $olioconfig['cacheExpire']); // } // } else { // echo $content; // } ?>