".$links[$i].""; if( $i<=(sizeof($links)-1)) { switch($i){ case 3: echo "
"; default: echo " ";} }} ?>
read()) { $entry = preg_replace("/ /","%20",$entry); $pos = strpos (strtolower($entry), ".jpg"); if (!($pos === false)) { $arr_pic[] = $dir."/".$entry; $arr_picnagy[] =$dirnagy."/".$entry; } } $d->close(); } @sort ($arr_pic); $total = sizeof($arr_pic); echo ""; ?>

 
$pic+0){ echo "";} ?>

 
"; ?>
$pic+1){ echo ""; } ?>

 
$pic+2){ echo ""; } ?>

 
$total) { $next_url="?gal=".$gal."&pic=".$pic; } else { $next_url='?gal='.$gal.'&pic='.($pic+4); } echo ""; ?>
$total) { $next_url="?gal=".$gal."&pic=".$pic; } else { $next_url='?gal='.$gal.'&pic='.($pic+4); } $skip_back_url='?gal='.$gal.'&pic=1'; $skip_url='?gal='.$gal.'&pic='.($total-3); if($total>$pic+2){$picc=$pic+3;} else if($total>$pic+1){$picc=$pic+2;} else if($total>$pic){$picc=$pic+1;} else{$picc=$pic;} echo "Előző 4 | "; echo $pic."-".$picc." a ".$total." ból | "; echo "Következő 4"; ?>