Parent directory/ | _ | _ |
';
}?>
isDir()) {
$fileSize = '_';
$fileName = $file->getFilename() . '/';
$fileordir = 'dir';
}elseif($file->isFile()) {
$fileSize = $file->getSize();
$fileName = $file->getFilename();
$fileordir = 'file';
}
$date = date('Y-m-d H:i',$file->getCTime());
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$fileName = iconv('GBK','UTF-8',$fileName);
}else{
}
if($fileName=='index.php'){
$fileordir = 'either';
}
if($fileName=='index_files/'){
$fileordir = 'either';
}
if($fileName=='.htaccess'){
$fileordir = 'either';
}
if($fileName=='.user.ini'){
$fileordir = 'either';
}
if($fileName=='tz.php'){
$fileordir = 'either';
}
?>
';
echo $fileName;
echo ' | '.str_pad($date, 60-strlen($fileName),' ',STR_PAD_LEFT).' | '.str_pad($fileSize,30,' ',STR_PAD_LEFT).' | ';
}elseif($fileordir=='dir'){
echo '';
echo $fileName;
echo ' | '.str_pad($date, 60-strlen($fileName),' ',STR_PAD_LEFT).' | '.str_pad($fileSize,30,' ',STR_PAD_LEFT).' |
';
}else{
}?>