1st readdir, 2nd parse... SET SESSION VARS!!! require_once("inc_global.php"); // Create Thumbs dir if ( ! is_dir ( "../thumbs" ) ) { mkdir ( "../thumbs" ) or die ("Can not create thums direcotory! Please check Permission!"); chmod("../thumbs" , 0777); } $pics = getDirContent($se_album,0); $GLOBALS['thumbs'] = getDirContent("thumbs",0); $numTotalPics = count($pics); $theDir[0] = $se_album; $aconfParsed = parseConfig($theDir, "../"); $se_albumName = $aconfParsed[$se_album][1]; $page_num = $picsPerPage*$numTotalPics; $page_num_total = ceil($numTotalPics/$picsPerPage); if ( $GLOBALS['useSearchEngineFriendlyUrl'] ) { define ("ALBUM_URL_BASE", ""); } else { define ("ALBUM_URL_BASE", "album.php?album=".$se_album); } // target of navigation and keyboard shortcuts if($ge_pageNr >= $page_num_total) // last page $next = 'p=' . $ge_pageNr; else // not yet the last $next = 'p=' . ($ge_pageNr+1); if( $ge_pageNr <= 0) // First page $prev = 'p=' . 0; else // not the first $prev = 'p=' . ($ge_pageNr -1); define("URL_NEXT" , ALBUM_URL_BASE.'&'.$next); define("URL_PREV" , ALBUM_URL_BASE.'&'.$prev); define("URL_INDEX" , "../index.php"); define("URL_FIRST" , ALBUM_URL_BASE."&p=0"); define("URL_LAST" , ALBUM_URL_BASE."&p=".($page_num_total-1)); define("URL_SLIDESHOW" , "slideshow.php?pn=".PIC_CURRENT."&album=".SE_ALBUM); define("URL_GRAYSCALE" , ALBUM_URL_BASE."&s2bw=1&p=".$ge_pageNr); ?> LIM Gallery Album .css">
  " . $se_albumName . " (".$numTotalPics." Pictures)\n"; ?> slideshow grayscale settings help
\n \n "; //ex slideshow button echo " \n "; //LINK: back $numPages = ceil($numTotalPics/$picsPerPage); if($ge_pageNr > 0) { echo ""; echo "\"previous\""; } //LINK: home echo "\n "; echo ""; echo "\"home\""; //LINK: next echo "\n "; if($ge_pageNr < ($numPages-1)) { echo ""; echo "\"next\""; } echo "\n "; //LINK: Pages if($numPages > 1) printPages(&$numPages); echo "\n \n"; //***** END *** HEAD Zeile + Navigation der Übersichten ***** //***** START *** table ausgeben, zum Bilder anzeigen + -> function "vorschaubild" aufrufen ***** echo "\n"; $firstPic = $ge_pageNr * $picsPerPage; $lastPic = $firstPic + $picsPerPage; if($lastPic>=$numTotalPics) $lastPic = $numTotalPics; $column = 1; //flag -> mk_trs... for($picNr=$firstPic;$picNr<$lastPic;$picNr++){ if($column == 1) echo "\n"; picPreview($picNr); if($column < $se_table_columns) $column++; else{ echo "\n"; $column = 1; } } echo "
\n"; //***** END *** table ausgeben, zum Bilder anzeigen + -> function "vorschaubild" aufrufen ***** ?>
\n "; $isLandscape = isLandscape($GLOBALS['se_album'], $pic[$curPic], "../"); if($_SESSION['thumb_oriSize']){ require_once("../gconfig.php"); if(in_array("th_".$GLOBALS['se_album']."_".($pic[$curPic]),$GLOBALS['thumbs'])){ $source = "../thumbs/th_".$GLOBALS['se_album']."_".($pic[$curPic]); } else { $source = "mk_thumb.php?th=1&picWidth=$GLOBALS[picWidth]&ls=$isLandscape&pic=".($pic[$curPic])."&album=".$GLOBALS['se_album']; } } else { $source = "mk_thumb.php?th=1&picWidth=$GLOBALS[picWidth]&ls=$isLandscape&pic=".($pic[$curPic])."&album=".$GLOBALS['se_album']; } if ( $GLOBALS['useSearchEngineFriendlyUrl'] ) { $picUrl = $curPic . ""; } else { $picUrl = 'pic.php?pic='.$curPic.'&album='.$GLOBALS['se_album']; } echo ''; echo "\n"; echo "\n"; } function printPages($numPages){ $picsPerPage = &$GLOBALS[picsPerPage]; for($i=0;$i<$numPages;$i++){ if($GLOBALS[ge_pageNr]==$i){ echo " ".($i+1).""; }else{ echo " ".($i+1).""; } } } ?>