2023-12-21 04:16:51 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Bookmark thumbnail image
|
|
|
|
* Shows the website thumbnail for the bookmark.
|
|
|
|
*
|
|
|
|
* Expects a $row variable with bookmark data.
|
|
|
|
*/
|
2023-12-21 04:34:24 +01:00
|
|
|
//2023-12-20 add line to avoid warning
|
|
|
|
if (!isset($GLOBALS['enableWebsiteThumbnails'])) return;
|
|
|
|
|
2023-12-21 04:16:51 +01:00
|
|
|
if (!$GLOBALS['enableWebsiteThumbnails']) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$thumbnailHash = md5(
|
|
|
|
$address . $GLOBALS['thumbnailsUserId'] . $GLOBALS['thumbnailsKey']
|
|
|
|
);
|
|
|
|
//echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
|
|
|
|
echo '<img class="thumbnail" onclick="window.location.href=\''.htmlspecialchars($address).'\'" src="http://www.artviper.net/screenshots/screener.php?url='.htmlspecialchars($address).'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
|
|
|
|
|
2023-12-21 04:34:24 +01:00
|
|
|
?>
|