0 || $nr_images_dir > 0) && ($basedir==$localdir) && $twg_offset == 0) { if ($lang_titel != '') { printf("" . $lang_titel . "

"); } $text = getDirectoryDescription($basedir); if ($text) { echo '
'; echo "" . $text . "
"; } } else { if ($basedir == $localdir && $nr_images_dir == 0) { // we are already in a substructure - no message here printf("" . $lang_titel_no . "

"); return 0; } } if ($nr == 0) { // we don't have subdirs - only images in the main folder! return 0; } $x = 0; // counts folders in a row $xx = 0; // counts actual folders if ($folder_effect == "fade") { if ($msie) { $iefilter = "filter:alpha(opacity=" . $fading_level . ");"; } else { $iefilter = ""; } $fade = " style='" . $iefilter . "opacity:0." . $fading_level . ";' onMouseover='if (window.makevisible) makevisible(this,0);' onMouseout='if (window.makevisible) makevisible(this,1)' "; if ($fade_all) { $fadeall = " style='" . $iefilter . "opacity:0." . $fading_level . ";' onMouseover='if (window.makevisibleAll) makevisibleAll(this,0)' onMouseout='if (window.makevisibleAll) makevisibleAll(this,1)' "; } else { $fadeall = $fade; } } else if ($folder_effect == "gray") { if ($msie) { $iefilter = "filter:gray();"; } else { $iefilter = ""; } $fade = " style='" . $iefilter . "opacity:0." . $gray_fading_level . ";' onMouseover='makegray(this,0)' onMouseout='makegray(this,1)' "; if ($fade_all) { $fadeall = " style='" . $iefilter . "opacity:0." . $gray_fading_level . ";' onMouseover='makegrayAll(this,0)' onMouseout='makegrayAll(this,1)' "; } else { $fadeall = $fade; } } else { $fade = $fadeall = ''; } // because of a bug in IE the center has to be here and not be defined in the style sheet where it should be echo '
'; echo ''; echo ''; $menupage = $menu_x * $menu_y; $skip_thumbnail_page_orig = $skip_thumbnail_page; while (list ($key, $val) = each ($verzeichnisse)) { if ($folder_effect == 'change') { $fade = $fadeall = ''; } $xx++; if ($xx > $twg_foffset_local && $xx <= ($twg_foffset_local + $menupage)) { $twg_album = $val; if ($basedir != $localdir) { $twg_album = substr($localdir, strlen($basedir) + 1) . '/' . $twg_album; } $album_enc = urlencode($twg_album); if ($show_number_of_pic) { $nr_count_tree = count_tree($basedir . '/' . $twg_album); } else { $nr_count_tree =''; } // the title is prepared $temp1 = explode ('/', $twg_album); $temp2 = array_pop($temp1); $titel = htmlspecialchars($temp2); $titel = getDirectoryName($basedir . '/' . $twg_album, $titel); // we get the folder description if a album.txt exists // TODO // we check each twg_album !! $relativepath = ''; $folderfilecache = false; include dirname(__FILE__) . '/checkprivate.inc.php'; $privatecheck = $privategal && !in_array($privatelogin, $passwd); if ($user_login_mode && $user_login_mode_hide_gal && $privatecheck) { continue; } if ($x++ == $menu_x) { echo ''; echo ''; $numofrows++; $x = 1; } $imagelist = get_image_list($twg_album, false, false); // we do the autoskipthumbs! $skip_thumbnail_page = $skip_thumbnail_page_orig; if ($auto_skip_thumbnail_page && $twg_smallnav == 'FALSE') { if (count($imagelist) <= (($numberofpics * 2) + 1)) { $subs = get_directories($localdir . '/' . $val); $nrsubs = count($subs); if ($nrsubs == 0) { $skip_thumbnail_page = true; } } } $folderfile = $basedir . '/' . $twg_album . '/folder.png'; if (file_exists($folderfile)) { $folderfileexists = true; $borderwidth = ''; $folderfile = 'folder.png'; // $overflowstyle = ""; } else { if ($autocreate_folder_image) { $folderfile = $cachedir . '/_' . md5($twg_album . $privatelogin) . '_folder_top.tmp.png'; if (file_exists($folderfile)) { // we check the time if it's over 1 day if yes we delete it if ((time() - filemtime($folderfile)) >= $precache_main_top_x_interval * 3600) { @unlink($folderfile); } } clearstatcache (); if (!file_exists($folderfile)) { // too old or it does not exist! // create folder_top.png $no_session_cache=true; $folder_top = getTopXViewsImage($twg_album); $imagesrc = $basedir . "/" . $twg_album . "/" . $folder_top; if ($folder_top && file_exists($imagesrc)) { // we create the folderfile .... $imagesrc = $basedir . "/" . $twg_album . "/" . $folder_top; // create the cache image in the right resolution! include_once dirname(__FILE__) . "/imagefunctions.inc.php"; $print_watermark = false; $print_text=false; $show_clipped_images=true; if (generatesmall($imagesrc, $folderfile, $menu_pic_size_x, $compression, 0, '')) { $folderfileexists = true; $folderfilecache = true; $borderwidth = ''; } else { // image could not be generated. We use the default settings. $folderfileexists = false; $borderwidth = "width:" . $menu_pic_size_x . "px;"; } } else { $folderfileexists = false; $borderwidth = "width:" . $menu_pic_size_x . "px;"; } } else { $folderfilecache = true; $folderfileexists = true; $borderwidth = ''; } } else { $folderfileexists = false; $borderwidth = "width:" . $menu_pic_size_x . "px;"; } // $overflowstyle = " style='overflow:hidden;' "; } if ($privatecheck) { $privateimage = $basedir . "/" . $twg_album . "/private.png"; if (file_exists($privateimage)) { $borderwidth = ''; // $overflowstyle = ""; } else { $borderwidth = "width:" . $menu_pic_size_x . "px;"; // $overflowstyle = " style='overflow:hidden;' "; } } $menuborder = ($hide_overview_image_border) ? '0' : '1'; // check new ! if (isset($_SESSION['new_tree'])) { $new_galleries = $_SESSION['new_tree']; } else { $new_galleries = array(); } if ($show_changes > 0 && $show_changes_type == "highlight" && in_array($basedir . "/" . $twg_album, $new_galleries)) { $newstyle = " highlight"; } else { $newstyle = ''; } echo '