$key) {
$other_format = exchangeExtension($filename, $label);
if (file_exists($other_format)) {
$isOther = exchangeExtension($image, $label);
$filename = $isOther = $other_format;
}
}
$other_format = removeExtension($filename);
if (file_exists($other_format)) {
$filename = $isOther = $other_format;
}
$fokus = "";
include "i_header.inc.php";
include "i_body_head.inc.php"; // body and closebutton
?>
| |
' . $lang_fileinfo_dl . ' | ' . getDownloadCount($twg_album, $image) . ' |
';
}
if ($show_image_rating) {
echo '| ' . $lang_fileinfo_rating . ' | ' . getVotesCount($twg_album, $image) . ' |
';
}
if ($isOther) {
$image = $isOther;
if (strrchr ($image, "/")) {
$image = substr (strrchr ($image, "/"), 1);
}
$image = removePrefix($image);
}
?>
| |
| |
| 0) {
echo sprintf("%01.0f KB", $size);
} else {
echo $lang_exif_not_available;
}
} else {
echo $lang_fileinfo_not_available;
}
?> |
| |
",urldecode($res["image"])) . " ";
} else {
$tag_image =" ";
}
if (isset($res["dir"])) {
$tag_dir = str_replace (",","
",urldecode($res["dir"])) ." ";
} else {
$tag_dir =" ";
}
print "| $lang_tag_enter_image | " . $tag_image . " |
";
print "| $lang_tag_enter_dir | " . $tag_dir . " |
";
}
// print the iptc data!
if ($show_iptc_data) {
if (isset($info["APP13"])) {
$iptc = iptcparse($info["APP13"]);
if (is_array($iptc)) {
foreach($lang_iptc_info as $label => $key) {
$data = "";
$choices = explode(",", $key);
if ((count($choices) == 1) && isset($iptc[$key][0])) {
$data = $iptc[$key][0];
} else if (isset($iptc[$choices[0]][0])) {
$data = $iptc[$choices[0]][0];
} else if (isset($choices[1]) && isset($iptc[$choices[1]][0])) {
$data = $iptc[$choices[1]][0];
}
$data = trim($data);
if (isset($charset) && strtolower($charset) == "utf-8") {
$data = ($filesystem_encoding == '') ? utf8_encode($data) : iconv($filesystem_encoding, 'UTF-8', $data);
}
if ($data != "") {
$data = cut_info_str($data);
print "| $label | " . $data . " |
";
}
}
}
}
}
// exif info !
if ($show_exif_info) {
if (substr($filename, 4, 3) != "://") {
show_exif_info($filename);
}
else {
foreach($lang_exif_info as $label => $key) {
$data = $lang_fileinfo_not_available;
print "| $label | " . trim($data) . " |
";
}
}
}
if ($_SERVER['SERVER_PORT'] == 443) {
$t_root = "https://" . get_server_name();
} else {
$t_root = "http://" . get_server_name();
if ($_SERVER['SERVER_PORT'] != 80) {
$t_root .= ":" . $_SERVER['SERVER_PORT'];
}
}
$url = $t_root . $twg_root ."?twg_album=" . $album_enc . "&twg_show=" . $image_enc . $twg_standalone;
$thumbimage = create_thumb_image($twg_album, urlencode($image));
$thumb = create_cache_file($thumbimage,$extension_thumb);
// todo: check small cache!
if (!file_exists($thumb) || $disable_direct_thumbs_access) {
$img = $t_root . dirname($twg_root) . "/" . $install_dir . "image.php?twg_album=" . $album_enc . "&twg_show=" . $image_enc . "&twg_type=thumb";
} else {
$cachedir = $cachedir_save;
$img = $t_root . dirname($twg_root) . "/" . $install_dir . create_cache_file(cacheencode($thumbimage),$extension_thumb, true);
}
?>
| BBCode | |
| Link | ' />" size=22/> |