Ik heb samen met Bjorge nu een nieuw album wat papa en mama beter kunnen onderhouden
De datum en tijd onder de foto is de publicatietijd, niet de datum van de foto
zelf!
$tdcounter=0;
$dirname=".";
$dirforthisalbum="../foto"; // so if you use this script on another site then chnage this to the relative dir, in this case it is http://erinn.nl/foto
$smallfilename=".jpg";
chdir($dirname);
if ($dir = @opendir(".")) {
while (($filename = readdir($dir)) !== false) { // loop all the files in the found directory
if ($filename != "." && $filename != "..") { // if directory then look in this one
// if ( is_dir($filename) ) {
// searchdir($filename, $smallfilename);
// }
// else {
$arraycounter = 0;
$timesfound = 0;
if (strstr($filename,$smallfilename)!=FALSE) {
if ($tdcounter == 5) {
$tdcounter=0;
echo "
"; // 5 columns in a row
}
$filenamelen=strlen($filename);
$linkfilename=substr($filename,0,$filenamelen-6);
echo "";
echo "" ?>
" class=drag border=0 > echo " ";?>
$update=filemtime("$filename"); echo " ";echo date("d-m-y H:i",$update);
echo " | ";
$tdcounter=$tdcounter+1;
}
// }
} // end if
}// end while lus voor de directory
closedir($dir);
chdir("..");
}
?>