// shows the correct size & size-label
function size($file) {
$size_label = array("Byte", "KB", "MB", "GB", "TB");
$size=filesize($file);
for ($c=0;$size>1024; $c++) {
$size/=1024;
}
$size=round($size,1);
return("$size ".$size_label[$c]);
}
$trbg = "1"; // which
- background
// reading the content and...
$mydir = dir("./");
while ($file=$mydir->read()){
$kind = filetype($file);
// if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query
// if ($kind != '.' && $kind != '..' && $kind != 'index.php'){
//... showing the content:
//