", $data); $returnVal .= $data1 . $spacer; // comment! $comment_xmlhttp = str_replace("image.php", "index.php", getKommentar($image, $twg_album, $kwerte, $kindex, false)); $install_dir = ''; $returnVal .= $comment_xmlhttp . $spacer; // viewcounter $counter=""; if ($show_count_views) { $counter = increaseImageCount($twg_album, $image); } $returnVal .= $counter . $spacer; // direct $direct = ""; if ($enable_download || $video_player == 'DIVX' || $video_player == 'FLV' || $video_player == 'QT') { $isset = false; $remote = twg_checkUrl($path); foreach($other_file_formats as $label => $key) { $other_format = exchangeExtension($path . "/" . $image, $label); if (file_exists($other_format)) { if (filesize($other_format) > 0) { $direct = twg_urlencode($other_format); } else if ($video_flash_site != "" && $video_player == "MP3") { $direct = $video_flash_site . removePrefix(exchangeExtension(urldecode($image), "mp3")); } $isset = true; } else if ($remote) { // we have to check remote as well. $moviename = dirname(__FILE__) . '/' . $remote . (exchangeExtension( urldecode($image), $label)); if (file_exists($moviename)) { $depth = count (explode('/', $twg_album)) + 1; $prefix = ''; for ($i=0;$i<$depth;++$i) { $prefix .= '../'; } $direct = fixUrl($path . '/' . $prefix . $remote) . (exchangeExtension( urldecode($image), $label)); $isset = true; } } } if (!$isset) { $other_format = removeExtension($path . "/" . $image); if (file_exists($other_format)) { $direct = twg_urlencode($other_format); $isset = true; } } if (!$isset) { if ($video_flash_site != "" && $video_player == "MP3") { $direct = $video_flash_site . removePrefix(exchangeExtension(urldecode($image), "mp3")); $isset = true; } } if (!$isset) { if ($video_flash_site == "http://" && $video_player == "WMP") { $direct = $video_flash_site . urldecode(removeExtension(replace_url_chars(urldecode($image)))); $isset = true; } } if (!$isset) { if ($enable_direct_download) { $direct = $path . "/" . $image; } else { $direct = "false"; } } } $returnVal .= $direct . $spacer; // rating $rating = ""; if ($show_image_rating && ($image_rating_position != "menu")) { $rating = substr(getVotesCount($twg_album, $image), 0, 4); /* old style if (round($rating) == floor($rating)) { $rateimage = floor($rating) . "0"; } else { $rateimage = floor($rating) . "5"; } $rating = '' . $rating . ''; */ $rating = round($rating * 20); } if ($dynamic_image_txt) { $imagetext = hasImagepageDescription($path ); if ($imagetext) { echo $returnVal . $rating . $spacer; includeImagepageDescription($path ); echo $spacer; includeImagepageDescription2($path ); } else { echo $returnVal . $rating . $spacer . $spacer; } } else { echo $returnVal . $rating . $spacer . $spacer; } } else if ($browserNoJS) { $_SESSION['twg_nojs'] = 'TRUE'; } else if ($browserXmlHttp) { // browserhttp // set the resolution of the browser in the session !! if (isset($_GET["twg_browserx"])) { $_SESSION[$GLOBALS["standalone"]. "browserx_res"] = $_GET["twg_browserx"] - 75; $_SESSION[$GLOBALS["standalone"]. "browsery_res"] = $_GET["twg_browsery"] - 75; if (isset($_GET["fontscale"])) { $_SESSION["fontscale"] = $_GET["fontscale"]; } } $_SESSION["twg_XMLHTTP"] = "TRUE"; echo ""; } else if ($precachexml) { // $install_dir = $install_dir_save; $is_cache_call=true; $enable_smily_support = false; // we don't need to replace something in a cache call. if (isset($_SESSION['create_album_tree_cache'])) { $treebase = $basedir; if ($multi_root_mode && $twg_album) { $elements = explode ("/", $twg_album, 1); $treebase = $basedir . '/' . $elements[0]; } print_js_tree($treebase); } $createcache = true; if (isset($_SESSION["count_treec" . $install_dir . $basedir])) { $createcache = $_SESSION["count_treec" . $install_dir . $basedir] > $precache_main_top_x_limit; } $dd = get_view_dirs($basedir, ""); if (generate_piclens_rss($dd, "")) { if ($cache_dirs && $precache_main_top_x && $createcache) { // we check if all caches are build! if (getTopXViews($dd)) if (getLatestKomments($dd)) if (getTopXDownloads($dd)) if (getTopXVotes($dd)) if (getTopXAverage($dd)) { if ($precache_topx_additional_dirs != "") { $ddirs = explode(",",$precache_topx_additional_dirs); foreach ($ddirs as $cachedd) { $checkdir = $basedir . "/" . $cachedd; if (file_exists($checkdir)) { $dd = get_view_dirs($checkdir, ""); if (!getTopXViews($dd)) { break; } } } } } } } if ($precache_xml_data) { $precache_xml = true; count_tree($basedir); } } else if ($menuXmlHttp) { // store the menu decicion! $_SESSION["TWG_MENU_STATUS"] = $_GET["twg_menustatus"]; } else if ($menuXmlAutohide) { // store the menu decicion! $_SESSION["TWG_AUTOHIDE"] = $_GET["twg_autohide"]; } else { } ?>