31 |
function recurse($path) { |
function recurse($path) { |
32 |
$this->out.="<ul>\n"; |
$this->out.="<ul>\n"; |
33 |
$this->h=opendir($path); |
$this->h=opendir($path); |
34 |
|
$hide_items=",$GLOBALS[gblHide],"; |
35 |
|
$dir_list=array(); |
36 |
while ($file = readdir($this->h)) { |
while ($file = readdir($this->h)) { |
37 |
|
if (substr($file,0,1) != "." && !strstr($hide_items,",$file,")) $dir_list[] = $file; |
38 |
|
} |
39 |
|
if (sizeof($dir_list) > 0) sort($dir_list); |
40 |
|
while ($file = array_shift($dir_list)) { |
41 |
if (substr($file,0,1) != ".") { |
if (substr($file,0,1) != ".") { |
42 |
if (is_dir("$path/$file")) { |
if (is_dir("$path/$file")) { |
43 |
$link="<b>".$file."</b> <small>".ReadNote("$path/$file")."</small>"; |
$link="<b>".$file."</b> <small>".ReadNote("$path/$file")."</small>"; |
61 |
$t=new tree(); |
$t=new tree(); |
62 |
$t->recurse($gblFsRoot); |
$t->recurse($gblFsRoot); |
63 |
$text .= "<hr>\n".$t->out; |
$text .= "<hr>\n".$t->out; |
|
|
|
64 |
?> |
?> |