]>
git.wh0rd.org - tt-rss.git/blob - image.php
d240dbc68ff9330d32e79c96a9b70e7d9d7340d2
2 set_include_path(get_include_path() . PATH_SEPARATOR
.
3 dirname(__FILE__
) . "/include");
5 require_once "config.php";
7 $filename = CACHE_DIR
. '/images/' . sha1($_GET['url']) . '.png';
9 if (file_exists($filename)) {
10 header("Content-type: image/png");
11 echo file_get_contents($filename);
13 header("Location: " . $_GET['url']);