0) {
echo '
';
if (isset($files['folders'])) {
//echo '';
echo 'Name | Size | Modified |
';
foreach ($files['folders'] as $f) {
echo '
'.$f.'
|
|
|
';
}
}
if (isset($files['files'])) {
foreach ($files['files'] as $f) {
echo '
'.$f.'
|
'.round(filesize(__DIR__.'/'.$path.'/'.$f) / 1000, 2).' ko |
'.date('D, M Y', filemtime(__DIR__.'/'.$path.'/'.$f)).' |
';
//echo '- '.$f.'
';
}
}
echo '
';
}
else {
if (file_exists($root)) {
echo '
Oooops This directory is empty...
';
}
else {
echo '
Oooops This directory does not exist. Use the breadcrumb to navigate away...
';
}
}
?>