Otoz wlasnie robie stronke i jestem na etapie galerii. No i mam problem z wyswietlaniem miniatur . Przegladnalem skrypt kilka razy i nic. Na co zwrocic uwage w skrypcie? Pomocy!

pozdrawiam
<?php $imgdir = $_GET['imgdir'] ; $page = $_GET['page']; include("header.inc"); require('config.php'); if ($rollover) { include('rollover.txt'); } ///// for captioning function caption($filename) { $is_captioned = check_perms($filename); if ($is_captioned) { include($filename); } } ///// for album description function album($filename) { $is_captioned = check_perms($filename); if ($is_captioned) { include($filename); } } ////check file permission function check_perms($filename) { $isreadable = $fileperms & 4; // pictures, thumbnails, config files and comments only need to be readable if (! $isreadable) { } return $isreadable; } // galleries need to be both readable and executable $isexecutable = $fileperms & 1; if (! $isreadable || ! $isexecutable) return ( $isreadable && $isexecutable); // ($dirperms & 5) == 5 ? } // default behavior: the filename does not exist return false; } { {$dname[] = $file; } } print "function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");"; $u=0; foreach($dname as $key=>$val) { if($dname[$u]) $u++; } } if ($imgdir =="") {$imgdir = $dname[0]; } { { } } //print "<h2>$imgdir</h2>"; $totxpage = $col*$maxrow; // images x page $totpages = ($totimg%$totxpage==0)?((int)$totimg/$totxpage):((int)($totimg/$totxpage)+1); // number of total pages if($totimg == false) else { ///print album description $album_name = "$imgdir/album.txt"; album($album_name); // start page if($page=="" || $page==1) { $x=0; $page = 1; } else $x = (($page-1)*($totxpage)); $r=0; // print of table foreach($a_img as $key=>$val) { $caption_name = "$imgdir/$a_img[$x].txt"; if(($x%$col)==0) if($a_img[$x]) { if($size[1] < $size[0]) { $height = 86; $width = 130; $imgnumber = ($x+1); if("$imgdir/$a_img[$x]" !="") if ($thumb){ $thumbnail = "thumbs.php?image=$imgdir/$a_img[$x]&newheight=86&newwidth=130&width=$size[0]&height=$size[1]"; } else { $thumbnail = "$imgdir/$a_img[$x]"; } print "<TD><a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,resizable=no');return false" target="_blank"><img src="$thumbnail" height=$height width=$width border=0 alt='$a_img[$x]' style="filter:alpha(opacity=100)" onmouseout="gradualfade(this,100,30,4)" onmouseover="gradualfade(this,40,50,100)"></a></TD>"; print "<TD COLSPAN=1><font size="1"><center><a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,resizable=no');return false" target="_blank">$size[0] x $size[1]</a> | <a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$halfw&h=$halfh&t=$imgdir $imgnumber','$x','width=$halfw,height=$halfh,directories=no,location=no,menubar=no,scrollbars=no,s
tatus=no,toolbar=no,resizable=no');return false" target="_blank">1/2</a> | <a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$quarterw&h=$quarterh&t=$imgdir $imgnumber','$x','width=$quarterw,height=$quarterh,directories=no,location=no,menubar=no,scrollbar
s=no,status=no,toolbar=no,resizable=no');return false" target="_blank">1/4</a></font></center>"; caption($caption_name); } else { $height = 130; $width = 86; if ($thumb){ $thumbnail = "thumbs.php?image=$imgdir/$a_img[$x]&newheight=130&newwidth=86&width=$size[0]&height=$size[1]"; } else { $thumbnail = "$imgdir/$a_img[$x]"; } $imgnumber = ($x+1); if("$imgdir/$a_img[$x]" !="") print "<TD><a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,resizable=no');return false" target="_blank"><img src="$thumbnail" height=$height width=$width border=0 alt='$a_img[$x]' style="filter:alpha(opacity=100)" onmouseout="gradualfade(this,100,30,4)" onmouseover="gradualfade(this,40,50,100)"></a></TD>"; print "<TD COLSPAN=1><br><font size="1"><a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,resizable=no');return false" target="_blank">$size[0] x $size[1]</a> | <a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$halfw&h=$halfh&t=$imgdir $imgnumber','$x','width=$halfw,height=$halfh,directories=no,location=no,menubar=no,scrollbars=no,s
tatus=no,toolbar=no,resizable=no');return false" target="_blank">1/2</a> | <a href='#' onclick="window.open('popup.php?img=$imgdir/$a_img[$x]&w=$quarterw&h=$quarterh&t=$imgdir $imgnumber','$x','width=$quarterw,height=$quarterh,directories=no,location=no,menubar=no,scrollbar
s=no,status=no,toolbar=no,resizable=no');return false" target="_blank">1/4</a></font>"; caption($caption_name); } } if(($x%$col) == ($col-1)) { $r++; } // print "r=$r - maxrow=$maxrow<br>"; if($r==$maxrow) { break; } else $x++; } } // page break //page number if($totimg>$totxpage) { if($totpages>$page) { $next = $page+1; $back = ($page>1)?($page-1):"1"; if($page>1) { $back = $page-1; print "<a href=index.php?imgdir=$imgdir&page=1>dalej</a> | <a href=index.php?imgdir=$imgdir&page=$back><< cofnij </a>"; } print "<b>strona $page z $totpages</b> <a href=index.php?imgdir=$imgdir&page=$next>dalej >></a> | <a href=index.php?imgdir=$imgdir&page=$totpages>ostatnia strona</a>"; } else { $next = (($page-1)==0)?"1":($page-1); print "<a href=index.php?imgdir=$imgdir&page=1>pierwsza strona</a> | <a href=index.php?imgdir=$imgdir&page=$next><< cofnij</a> <b>strona $page z $totpages</b> "; } } include("footer.inc"); ?>