34 |
while ($file = readdir($this->h)) { |
while ($file = readdir($this->h)) { |
35 |
if (substr($file,0,1) != ".") { |
if (substr($file,0,1) != ".") { |
36 |
if (is_dir("$path/$file")) { |
if (is_dir("$path/$file")) { |
37 |
$this->out.="<li> <B>$file</b>"; |
$link="<b>".$file."</b> <small>".ReadNote("$path/$file")."</small>"; |
38 |
|
$this->out.="<li> $link"; |
39 |
$new_t=new tree(); |
$new_t=new tree(); |
40 |
$new_t->recurse("$path/$file"); |
$new_t->recurse("$path/$file"); |
41 |
$this->out.=$new_t->out; |
$this->out.=$new_t->out; |
42 |
} else { |
} else { |
43 |
//$this->out.="<li> $file\n"; |
//$this->out.="<li> $file\n"; |
44 |
$dir=substr($path,strlen($GLOBALS[gblFsRoot]),strlen($path)-strlen($GLOBALS[gblFsRoot])); |
$dir=substr($path,strlen($GLOBALS[gblFsRoot]),strlen($path)-strlen($GLOBALS[gblFsRoot])); |
45 |
$this->out.="<li> <a href=\"?A=E&F=".urlencode($file)."&D=".urlencode($dir)."\">$file</a>\n"; |
$link=$file." <small>".ReadNote("$path/$file")."</small>"; |
46 |
|
$this->out.="<li> <a href=\"?A=E&F=".urlencode($file)."&D=".urlencode($dir)."\">$link</a>\n"; |
47 |
} |
} |
48 |
} |
} |
49 |
} |
} |