]> git.wh0rd.org - tt-rss.git/blame - image.php
fix help not loading on ? press
[tt-rss.git] / image.php
CommitLineData
236ac05c 1<?php
3c696512 2 set_include_path(get_include_path() . PATH_SEPARATOR .
f03a795d 3 dirname(__FILE__) . "/include");
107d0cf3 4
bc0f0785 5 require_once "config.php";
236ac05c 6
3c696512
AD
7 $filename = CACHE_DIR . '/images/' . sha1($_GET['url']) . '.png';
8
9 if (file_exists($filename)) {
10 header("Content-type: image/png");
11 echo file_get_contents($filename);
12 } else {
13 header("Location: " . $_GET['url']);
14 }
236ac05c 15?>