0 ? PIC_URL_BASE.PIC_PREV : PIC_URL_BASE."0"; define("URL_NEXT" , $next); define("URL_PREV" , $prev); define("URL_INDEX" , ALBUM_URL_BASE.PIC_CURRENT); define("URL_FIRST" , PIC_URL_BASE."0"); define("URL_LAST" , PIC_URL_BASE.(PIC_NUM-1)); define("URL_ZOOM" , "../".SE_ALBUM.'/'.$pics[PIC_CURRENT]); define("URL_SLIDESHOW" , "slideshow.php?pn=".PIC_CURRENT."&album=".SE_ALBUM); define("URL_GRAYSCALE" , $s2bwPath."&s2bw=1"); //***** END *** Reading from the directory ***** //***** START *** Check the Settings, put defaults if no settings found ***** $configs = parseConfig(array($subDir), ''); $bfile = $configs[$subDir]; $picFullPath = $subDir."/".$pics[PIC_CURRENT]; $picSize = @getimagesize($picFullPath); if(!SE_WIDTH){ require_once("inc_global.php"); setSessionDefaults(); }else{ $picWidth = SE_WIDTH; } if($picSize[0] < $picSize[1]){ $isLandscape = 2; //landscape=false if($picSize[1]<=SE_WIDTH){ $picWidth = $picSize[1]; //set ori"Width" require_once("../gconfig.php"); if($_SESSION[pic_quali]>$useOriIfBigger) $flagOriPic = 1; } }else{ $isLandscape = 1; //landscape=true if($picSize[0]<=SE_WIDTH){ $picWidth = $picSize[0]; //set oriWidth require_once("../gconfig.php"); if($_SESSION['pic_quali']>$useOriIfBigger) $flagOriPic = 1; } } //***** END *** Check the Settings, put defaults if no settings found ***** //***** START *** HTML HEAD ***** ?> LIM-Gallery Pic
  " . $bfile[1].SE_ALBUM_NAME." / ".$pics[PIC_CURRENT]."\n"; echo " (".(PIC_CURRENT+1)."/".PIC_NUM.")"; ?> )"> original size slideshow grayscale settings help
0){ echo ''; echo "previous"; } echo ' '; echo "overview"; if(PIC_CURRENT"; echo " next"; } echo "
"; //***** END *** Navigation ***** //TODO: // use div's instead tables //***** START *** Show picture ***** if($flagOriPic!=1 || $_SESSION['grayscale'] !=0){ echo ""; }else{ echo ""; } //***** END *** Show picture ***** if($isLandscape != 1) //not landscape $picWidth = ceil($picSize[0]/$picSize[1]*$picWidth); if($picWidth<350) $picWidth = 350; ?>