You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
416 B
PHP
22 lines
416 B
PHP
<?php
|
|
errorlog('readdir startet');
|
|
errorlog('Oeffne Verzeichnis: '.$_GET['dir']);
|
|
|
|
$dir = '';
|
|
if ($fudir = opendir($_GET['dir']))
|
|
{
|
|
errorlog('Oeffnen erfolgreich');
|
|
|
|
while (false !== ($file = readdir($fudir))){
|
|
if (substr($file,0,1) != '.'){
|
|
$dir .= $file.';';
|
|
}
|
|
}
|
|
closedir($fudir);
|
|
errorlog('Files gefunden: '.$dir);
|
|
echo $dir;
|
|
|
|
}else{
|
|
errorlog('Öeffnen nicht erfolgreich');
|
|
}
|
|
?>
|