diff --git a/app/script_edit/filelist.php b/app/script_edit/filelist.php index 5f6cba7418..bdf718ec84 100644 --- a/app/script_edit/filelist.php +++ b/app/script_edit/filelist.php @@ -38,11 +38,6 @@ else { //add css and javascript require_once "header.php"; -//define function is_file - function is_file($filename) { - //if (@filesize($filename) > 0) { return true; } else { return false; } - } - //define function space function space($count) { $r=''; $i=0; @@ -83,15 +78,16 @@ else { $level = explode('/',$newpath); if (is_dir($newpath)) { - /*$mod_array[] = array( - 'level'=>count($level)-1, - 'path'=>$newpath, - 'name'=>end($level), - 'type'=>'dir', - 'mod_time'=>filemtime($newpath), - 'size'=>''); - $mod_array[] = recur_dir($newpath); - */ + + //$mod_array[] = array( + //'level'=>count($level)-1, + //'path'=>$newpath, + //'name'=>end($level), + //'type'=>'dir', + //'mod_time'=>filemtime($newpath), + //'size'=>''); + //$mod_array[] = recur_dir($newpath); + $dirname = end($level); $htmldirlist .= space(count($level))."
$dirname
\n"; //$htmldirlist .= space(count($level))."
Tools
\n"; @@ -106,14 +102,15 @@ else { $htmldirlist .= space(count($level))."
\n"; } else { - /*$mod_array[] = array( - 'level'=>count($level)-1, - 'path'=>$newpath, - 'name'=>end($level), - 'type'=>'file', - 'mod_time'=>filemtime($newpath), - 'size'=>filesize($newpath)); - */ + + //$mod_array[] = array( + // 'level'=>count($level)-1, + // 'path'=>$newpath, + // 'name'=>end($level), + // 'type'=>'file', + // 'mod_time'=>filemtime($newpath), + // 'size'=>filesize($newpath)); + $filename = end($level); $filesize = round(filesize($newpath)/1024, 2); $htmlfilelist .= space(count($level))."
$filename
\n";