--- include_php/tree.php 2001/12/16 10:33:10 1.2
+++ include_php/tree.php 2001/12/16 10:49:31 1.3
@@ -31,7 +31,13 @@
function recurse($path) {
$this->out.="
\n";
$this->h=opendir($path);
+ $hide_items=",$GLOBALS[gblHide],";
+ $dir_list=array();
while ($file = readdir($this->h)) {
+ if (substr($file,0,1) != "." && !strstr($hide_items,",$file,")) $dir_list[] = $file;
+ }
+ if (sizeof($dir_list) > 0) sort($dir_list);
+ while ($file = array_shift($dir_list)) {
if (substr($file,0,1) != ".") {
if (is_dir("$path/$file")) {
$link="".$file." ".ReadNote("$path/$file")."";
@@ -55,5 +61,4 @@
$t=new tree();
$t->recurse($gblFsRoot);
$text .= "
\n".$t->out;
-
?>