/* Copyright ©, 2005, Walter Long */
include_once "_inc_global.php";
$dir=rqst("dir");
$typ=rqst("typ");
$gID=mySession('id');
$sampleimg=rqst("sampleimg");
$xcolor=($sampleimg)? "" : "background-color:#eee;" ;
//echo("
img=".$sampleimg);
//echo("
bg=".$xcolor);
?>
Optic
$imageslist="";
$images="";
$imgcnt=0;
$ThumbImages=array();
$NoThumbs=array();
$imgix=0;
$dir_handle=@opendir("../Content/Filters") or die("Unable to open $dirpath");
while($filename=readdir($dir_handle))$filenames[]=$filename;
sort($filenames);
$tmp="";
foreach($filenames as $filename){
$file=$filename;
$typ=myFileType($file);
if(isImage($file)){
if(strstr($file,"_tn.")>-1){
$url="../Content/Filters/".$file;
if(!_in($file,".png")){
//s.cssfilters='contrast(179%) saturate(234%) brightness(137%) '; s.mask={'On':1,'Type':2,'Direction':0,'Start':26.4,'Blur':33.8,'Red':0,'Green':0,'Blue':0,'Solid':0,'SolidAlpha':100};
$style="opacity:0.6;filter:contrast(179%) saturate(234%) brightness(137%);" ;
}
$imgcnt++;
$big_file=str_replace("_tn.",".",$file);
$ThumbImages[]=$big_file;
$tmp=$tmp."";
if($sampleimg)$tmp=$tmp."

";
$tmp=$tmp."

";
$tmp=$tmp."
";
if(empty($gImage))$gImage=$dir."/".$big_file;
$imgix+=1;
$images.="'$dirlink$file',";
}
}
}
$imageslist.=$tmp;
$images=rtrim($images,",");
closedir($dir_handle);
?>