remove floicon because its author is a colossal shitlord (http://tt-rss.org/forum/viewtopic.php?f=1&t=2055&p=10824#p10822)

This commit is contained in:
Andrew Dolgov
2013-05-18 22:18:53 +04:00
parent 47673e6611
commit dce5037888
2 changed files with 1 additions and 864 deletions
+1 -15
View File
@@ -1,7 +1,5 @@
<?php
require_once "lib/floIcon.php";
function _resolve_htmlcolor($color) {
$htmlcolors = array ("aliceblue" => "#f0f8ff",
"antiquewhite" => "#faebd7",
@@ -285,19 +283,7 @@ function hsl2rgb($arr) {
$colors = array();
$size = @getimagesize($imageFile);
if (!defined('_DISABLE_FLOICON') && strtolower($size['mime']) == 'image/vnd.microsoft.icon') {
$ico = new floIcon();
@$ico->readICO($imageFile);
if(count($ico->images)==0)
return null;
else
$img = @$ico->images[count($ico->images)-1]->getImageResource();
} else {
$img = @imagecreatefromstring(file_get_contents($imageFile));
}
$img = @imagecreatefromstring(file_get_contents($imageFile));
if (!$img) return false;