From a20e82bf1701c2d43c3e3bcf498b43647fea641a Mon Sep 17 00:00:00 2001 From: Garreau Alexandre Date: Mon, 14 Oct 2013 17:14:14 +0200 Subject: [PATCH] =?UTF-8?q?Appel=20des=20ic=C3=B4nes=20de=20type=20d?= =?UTF-8?q?=E2=80=99autoblog=20vers=20des=20fichiers=20externes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cette pull request fait la modification pour qu’index.php mette en URL celle des images externes situées dans le répertoire des ressources. --- index.php | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/index.php b/index.php index 8ec5f9e..0502400 100644 --- a/index.php +++ b/index.php @@ -192,44 +192,6 @@ if (isset($_GET['rss'])) { /** * SVG **/ -if (isset($_GET['icon'])) -{ -header('Content-type: image/svg+xml'); -function svg_base($color) - { - $svg = ''; - return $svg; - } - - $svg_twitter=svg_base('#3aaae1'); - $svg_youtube=svg_base('#a00000'); - $svg_statusnet=svg_base('#ff6a00'); - $svg_shaarli=svg_base('#008000'); - $svg_generic=svg_base('#000000'); - -$svg_type = ''; - - switch ($_GET['icon']) { - case "twitter": - $svg_type = $svg_twitter; - break; - case "microblog": - $svg_type = $svg_statusnet; - break; - case "youtube": - $svg_type = $svg_youtube; - break; - case "shaarli": - $svg_type = $svg_shaarli; - break; - case "generic": - $svg_type = $svg_generic; - break; - } - -die($svg_type); -} - if (isset($_GET['check'])) { header('Content-type: image/svg+xml'); @@ -980,7 +942,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY $autoblogs_display .= '
  • - +

    '.escape($autoblog->site_title).'