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