2 set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
5 require_once "config.php";
7 $url = base64_decode($_GET['url']);
9 $filename = CACHE_DIR . '/images/' . sha1($url) . '.png';
11 if (file_exists($filename)) {
12 header("Content-type: image/png");
13 echo file_get_contents($filename);
15 header("Location: $url");