if(!isset($dir)) {
$dir = $DOCUMENT_ROOT; // O diretório padrão é $DOCUMENT_ROOT, é o diretório ROOT do seu site.
$d = dir($dir);
} else {
$d = dir($dir);
}
if(!isset($file)) {
echo "Handle: ".$d->handle."
";
echo "Path: ".$d->path."
";
echo "Voltar
";
echo "
Arquivo | Alterado | Tamanho | "; while (false !== ($entry = $d->read())) { if($entry != "." and $entry != ".." and $entry != "include" and $entry != "mysql" and $entry != "gratis") { $entryfull = $dir."/".$entry; echo "||||||
".$entry." | ".date("d/m/Y - H:i:s", @filectime($entryfull))." | ".@filesize($entryfull)." bytes | "; } elseif(is_file($entryfull)) { echo "".$entry." | ".date("d/m/Y - H:i:s", @filectime($entryfull))." | ".@filesize($entryfull)." bytes | "; } else { echo "".$entry." | ".date("d/m/Y - H:i:s", @filectime($entryfull))." | ".@filesize($entryfull)." bytes | "; } echo "