/[docman]/include_php/tree.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /include_php/tree.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Sun Dec 16 10:33:10 2001 UTC revision 1.3 by dpavlin, Sun Dec 16 10:49:31 2001 UTC
# Line 31  class tree { Line 31  class tree {
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>";
# Line 55  class tree { Line 61  class tree {
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  ?>  ?>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26