';
if (!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()) $linklist.=''.htmlspecialchars(linkdate2locale($link['linkdate'])).' - permalink - ';
@@ -1383,26 +1409,26 @@ function thumbnail($url)
if ($domain=='youtube.com' || $domain=='www.youtube.com')
{
parse_str(parse_url($url,PHP_URL_QUERY), $params); // Extract video ID and get thumbnail
- if (!empty($params['v'])) return '
';
+ if (!empty($params['v'])) return '';
}
if ($domain=='imgur.com')
{
$path = parse_url($url,PHP_URL_PATH);
- if (strpos($path,'/r/')==0) return '
';
- if (strpos($path,'/gallery/')==0) return '
';
- if (substr_count($path,'/')==1) return '
';
+ if (strpos($path,'/r/')==0) return '';
+ if (strpos($path,'/gallery/')==0) return '';
+ if (substr_count($path,'/')==1) return '';
}
if ($domain=='i.imgur.com')
{
$pi = pathinfo(parse_url($url,PHP_URL_PATH));
- if (!empty($pi['filename'])) return '
';
+ if (!empty($pi['filename'])) return '';
}
if ($domain=='dailymotion.com' || $domain=='www.dailymotion.com')
{
if (strpos($url,'dailymotion.com/video/'))
{
$thumburl=str_replace('dailymotion.com/video/','dailymotion.com/thumbnail/video/',$url);
- return '
';
+ return '';
}
}
if (endsWith($domain,'.imageshack.us'))
@@ -1411,7 +1437,7 @@ function thumbnail($url)
if ($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='gif')
{
$thumburl = substr($url,0,strlen($url)-strlen($ext)).'th.'.$ext;
- return '
';
+ return '';
}
}
@@ -1425,7 +1451,7 @@ function thumbnail($url)
if ($domain=='flickr.com' || endsWith($domain,'.flickr.com') || $domain=='vimeo.com')
{
$sign = hash_hmac('sha256', $url, $GLOBALS['salt']); // We use the salt to sign data (it's random, secret, and specific to each installation)
- return '
';
+ return '';
}
// For all other, we try to make a thumbnail of links ending with .jpg/jpeg/png/gif
@@ -1435,7 +1461,7 @@ function thumbnail($url)
if ($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='gif')
{
$sign = hash_hmac('sha256', $url, $GLOBALS['salt']); // We use the salt to sign data (it's random, secret, and specific to each installation)
- return '