// IvoDKA photo Script
// Configuratie
$gallery = $_REQUEST['gallery'];
$page = $_REQUEST['page'];
$woord="index"; // naam vd php file
$path2 = "$gallery"; // dir waar thumbnails in staan
$path = "$gallery"; // dir waar foto's in staan
$title = "$gallery - Page ". ($page + 1);
// header, dit staat boven de plaatjes.
$header = "
$gallery";
// Configuratie
$clm = "5"; // Aantal kolommen
$rows = "5"; // aantal rijen
$t_w = "120";
$t_h = "90";
?>
B-COM
echo "
$title
";
$min = (1+($page * 20));
$max = (($page +1) * 20);
$number = $clm * $rows;
$break = (($page * 20) + $clm);
echo "";
$d = dir("$path");
$count = -1;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){
ClearStatCache();
//$size = GetImageSize("$path/$entry");
//$file_size=fileSize("$path/$entry");
//$file_size = round($file_size / 1000) . "k";
echo (" $entry
| \n"; // width=$t_w
}
if ($count == $break){
echo "
\n\n";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "
";
$pages = ($count / 20);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
$volgende = " | Volgende pagina |";
}
if (($page+1) > "1"){
$vorige = "| Vorige pagina |";
}
// Footer, dit staat onder de plaatjes.
echo "$vorige $volgende
Copyright 2002 qrix | bier (B)";
?>