[LON-CAPA-cvs] cvs: loncom / lond
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 21 Jun 2004 14:08:20 -0000
matthew Mon Jun 21 10:08:20 2004 EDT
Modified files:
/loncom lond
Log:
Recommit of actual changes from 1.199
Index: loncom/lond
diff -u loncom/lond:1.200 loncom/lond:1.201
--- loncom/lond:1.200 Mon Jun 21 09:25:53 2004
+++ loncom/lond Mon Jun 21 10:08:20 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.200 2004/06/21 13:25:53 matthew Exp $
+# $Id: lond,v 1.201 2004/06/21 14:08:20 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -56,7 +56,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.200 $'; #' stupid emacs
+my $VERSION='$Revision: 1.201 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid;
my $currentdomainid;
@@ -3033,6 +3033,24 @@
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
} elsif ($userinput =~ /^ls/) {
if(isClient) {