/[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.1 by dpavlin, Sat Dec 15 20:34:43 2001 UTC revision 1.2 by dpavlin, Sun Dec 16 10:33:10 2001 UTC
# Line 34  class tree { Line 34  class tree {
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                  }                  }

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

  ViewVC Help
Powered by ViewVC 1.1.26