23 lines
585 B
PHP
23 lines
585 B
PHP
<?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/
|
|
* (C) 2009-2014 Vitaliy Filippov vitalif@mail.ru http://yourcmc.ru/wiki/
|
|
*
|
|
* Distributed under the GPL - see LICENSE
|
|
*
|
|
*/
|
|
require_once('simplepie/simplepie.php');
|
|
|
|
if(file_exists("./cache/" . $_GET['i'] . ".spi"))
|
|
{
|
|
SimplePie_Misc::display_cached_file($_GET['i'], './cache', 'spi');
|
|
}
|
|
else
|
|
{
|
|
header("Location: image/feed-icon.png");
|
|
}
|