|
|
@ -1868,6 +1868,8 @@
|
|
|
|
$url = $line["content_url"];
|
|
|
|
$url = $line["content_url"];
|
|
|
|
$ctype = $line["content_type"];
|
|
|
|
$ctype = $line["content_type"];
|
|
|
|
$title = $line["title"];
|
|
|
|
$title = $line["title"];
|
|
|
|
|
|
|
|
$width = $line["width"];
|
|
|
|
|
|
|
|
$height = $line["height"];
|
|
|
|
|
|
|
|
|
|
|
|
if (!$ctype) $ctype = __("unknown type");
|
|
|
|
if (!$ctype) $ctype = __("unknown type");
|
|
|
|
|
|
|
|
|
|
|
@ -1891,6 +1893,8 @@
|
|
|
|
$entry["filename"] = $filename;
|
|
|
|
$entry["filename"] = $filename;
|
|
|
|
$entry["url"] = $url;
|
|
|
|
$entry["url"] = $url;
|
|
|
|
$entry["title"] = $title;
|
|
|
|
$entry["title"] = $title;
|
|
|
|
|
|
|
|
$entry["width"] = $width;
|
|
|
|
|
|
|
|
$entry["height"] = $height;
|
|
|
|
|
|
|
|
|
|
|
|
array_push($entries, $entry);
|
|
|
|
array_push($entries, $entry);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1905,9 +1909,15 @@
|
|
|
|
preg_match("/\.(jpg|png|gif|bmp)/i", $entry["filename"])) {
|
|
|
|
preg_match("/\.(jpg|png|gif|bmp)/i", $entry["filename"])) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!$hide_images) {
|
|
|
|
if (!$hide_images) {
|
|
|
|
|
|
|
|
$encsize = '';
|
|
|
|
|
|
|
|
if ($entry['height'] > 0)
|
|
|
|
|
|
|
|
$encsize .= ' height="' . intval($entry['width']) . '"';
|
|
|
|
|
|
|
|
if ($entry['width'] > 0)
|
|
|
|
|
|
|
|
$encsize .= ' width="' . intval($entry['height']) . '"';
|
|
|
|
$rv .= "<p><img
|
|
|
|
$rv .= "<p><img
|
|
|
|
alt=\"".htmlspecialchars($entry["filename"])."\"
|
|
|
|
alt=\"".htmlspecialchars($entry["filename"])."\"
|
|
|
|
src=\"" .htmlspecialchars($entry["url"]) . "\"/></p>";
|
|
|
|
src=\"" .htmlspecialchars($entry["url"]) . "\"
|
|
|
|
|
|
|
|
" . $encsize . " /></p>";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$rv .= "<p><a target=\"_blank\"
|
|
|
|
$rv .= "<p><a target=\"_blank\"
|
|
|
|
href=\"".htmlspecialchars($entry["url"])."\"
|
|
|
|
href=\"".htmlspecialchars($entry["url"])."\"
|
|
|
@ -2220,6 +2230,7 @@
|
|
|
|
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 Firefox/5.0');
|
|
|
|
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 Firefox/5.0');
|
|
|
|
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
|
|
|
|
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
|
|
|
|
curl_setopt($curl, CURLOPT_HEADER, true);
|
|
|
|
curl_setopt($curl, CURLOPT_HEADER, true);
|
|
|
|
|
|
|
|
curl_setopt($curl, CURLOPT_NOBODY, true);
|
|
|
|
curl_setopt($curl, CURLOPT_REFERER, $url);
|
|
|
|
curl_setopt($curl, CURLOPT_REFERER, $url);
|
|
|
|
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
|
|
|
|
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
|
|
|
|
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
|
|
|
|
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
|
|
|
|