".html_entity_decode(utf8_encode($meine_datei)).""); } echo(nl2br("\n\n\n")); } if(file_exists($basepath."/".$files[$x]."/text.txt")) { $datei = file($basepath."/"."/text.txt"); foreach($datei AS $meine_datei) { echo html_entity_decode(utf8_encode($meine_datei)); } } echo(nl2br("\n\n\n")); $dirText=$basepath; $dir=opendir($dirText); $handle=opendir($dirText); $files = array(); while ($file = readdir ($handle)) { if ($file != "." AND $file != "..") $files[] = $file; } closedir($handle); natcasesort($files); if (count($files) > 0) { echo(""); } $imageCount = 0; foreach ($files as &$f) { if (($imageCount % 3) == 0 && $imageCount <> 0) { echo("\n"); } $pos = strpos($f, ".jpg"); if ($pos != false) { $imageCount++; } else { $pos = strpos($f, ".JPG"); if ($pos != false) { $imageCount++; } else { continue; } } echo(""); } if (count($files) > 0) { echo(""); } ?>