$hed1


$enlargeok             Home
EOF; $rdh=opendir($thedir); // read dir handle $capa=cap($dir); // captions if any // turn dir into an array so we can sort the photos (come in random and confusing) while ($pfile=readdir($rdh)) { $dira[]=$pfile; } sort($dira); while (list($junk,$pfile)=each($dira)) { list($fname,$ftype)=explode(".",$pfile); // get filename.filetype if (strlen($pfile)>4) { if (is_array($capa)) { $captxt="
".$capa[$fname]; } $enlink=($thepix!='pix4') ? "" : ''; echo << $enlink$pfile $captxt
EOF; } /* $size = GetImageSize("$thedir/$bfile"); if ($size[0]>500) echo "$fname $ftype     $bfile    $size[0]
"; $cmd = "/usr/lib/ImageMagic/ImageMagick-6.0.8/bin/convert -crop 100x0+0+0% -resize 400 -quality 50 /home/dealpix/p/$bfile /tmp/outbig/$bfile"; exec($cmd); echo "

$cmd

"; */ } exit; function cap($dir) { if ($dir==3) { $t=<<