2009-08-03 16:42:04 +04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
|
|
|
|
*
|
|
|
|
* favicon.php - displays an image cached by SimplePie
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2007 Stephen Minutillo
|
|
|
|
* steve@minutillo.com - http://minutillo.com/steve/
|
|
|
|
*
|
|
|
|
* Distributed under the GPL - see LICENSE
|
|
|
|
*
|
|
|
|
*/
|
2011-07-21 15:25:55 +04:00
|
|
|
require_once('simplepie/simplepie.php');
|
2009-08-03 16:42:04 +04:00
|
|
|
|
2010-01-27 18:49:32 +03:00
|
|
|
if(file_exists("./cache/" . $_GET[i] . ".spi"))
|
2009-08-03 16:42:04 +04:00
|
|
|
{
|
|
|
|
SimplePie_Misc::display_cached_file($_GET['i'], './cache', 'spi');
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
header("Location: image/feed-icon.png");
|
|
|
|
}
|