Diff for /loncom/lond between versions 1.234 and 1.235

version 1.234, 2004/08/23 11:24:45 version 1.235, 2004/08/24 05:13:40
Line 3225  sub process_request { Line 3225  sub process_request {
     Reply($client, "refused\n", $userinput);      Reply($client, "refused\n", $userinput);
           
  }   }
 # ----------------------------------------- portfolio directory list (portls)  
     } elsif ($userinput =~ /^portls/) {  
  if(isClient) {  
     my ($cmd,$uname,$udom)=split(/:/,$userinput);  
     my $udir=propath($udom,$uname).'/userfiles/portfolio';  
     my $dirLine='';  
     my $dirContents='';  
     if (opendir(LSDIR,$udir.'/')){  
  while ($dirLine = readdir(LSDIR)){  
     $dirContents = $dirContents.$dirLine.'<br />';  
  }  
     } else {  
  $dirContents = "No directory found\n";  
     }  
     print $client $dirContents."\n";  
  } else {  
     Reply($client, "refused\n", $userinput);  
  }  
 # -------------------------------------------------------------------------- ls  # -------------------------------------------------------------------------- ls
     } elsif ($userinput =~ /^ls/) {      } elsif ($userinput =~ /^ls/) {
  if(isClient) {   if(isClient) {

Removed from v.1.234  
changed lines
  Added in v.1.235


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>