version 1.16, 2000/06/30 17:09:51
|
version 1.17, 2000/07/17 16:37:14
|
Line 13
|
Line 13
|
# put(namesp,hash) : stores hash in namesp |
# put(namesp,hash) : stores hash in namesp |
# dump(namesp) : dumps the complete namespace into a hash |
# dump(namesp) : dumps the complete namespace into a hash |
# ssi(url) : does a complete request cycle on url to localhost |
# ssi(url) : does a complete request cycle on url to localhost |
|
# repcopy(filename) : replicate file |
|
# dirlist(url) : gets a directory listing |
# |
# |
# 6/1/99,6/2,6/10,6/11,6/12,6/14,6/26,6/28,6/29,6/30, |
# 6/1/99,6/2,6/10,6/11,6/12,6/14,6/26,6/28,6/29,6/30, |
# 7/1,7/2,7/9,7/10,7/12,7/14,7/15,7/19, |
# 7/1,7/2,7/9,7/10,7/12,7/14,7/15,7/19, |
Line 22
|
Line 24
|
# 04/05,05/29,05/31,06/01, |
# 04/05,05/29,05/31,06/01, |
# 06/05,06/26 Gerd Kortemeyer |
# 06/05,06/26 Gerd Kortemeyer |
# 06/26 Ben Tyszka |
# 06/26 Ben Tyszka |
# 06/30 Gerd Kortemeyer |
# 06/30,07/15,07/17 Gerd Kortemeyer |
|
|
package Apache::lonnet; |
package Apache::lonnet; |
|
|
Line 291 sub subscribe {
|
Line 293 sub subscribe {
|
sub repcopy { |
sub repcopy { |
my $filename=shift; |
my $filename=shift; |
my $transname="$filename.in.transfer"; |
my $transname="$filename.in.transfer"; |
|
if ((-e $filename) || (-e $transname)) { return OK; } |
my $remoteurl=subscribe($filename); |
my $remoteurl=subscribe($filename); |
if ($remoteurl eq 'con_lost') { |
if ($remoteurl eq 'con_lost') { |
&logthis("Subscribe returned con_lost: $filename"); |
&logthis("Subscribe returned con_lost: $filename"); |
Line 354 sub ssi {
|
Line 357 sub ssi {
|
return $response->content; |
return $response->content; |
} |
} |
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------- Log |
# ------------------------------------------------------------------------- Log |
|
|
sub log { |
sub log { |
Line 591 sub plaintext {
|
Line 591 sub plaintext {
|
sub assignrole { |
sub assignrole { |
} |
} |
|
|
|
# ------------------------------------------------------------ Directory lister |
|
|
|
sub dirlist { |
|
my $uri=shift; |
|
$uri=~/^\/res\/(\w+)\/(\w+)\//; |
|
my $listing=reply('ls:'.$perlvar{'lonDocRoot'}.'/'.$uri,homeserver($2,$1)); |
|
return split(/:/,$listing); |
|
} |
|
|
# -------------------------------------------------------- Escape Special Chars |
# -------------------------------------------------------- Escape Special Chars |
|
|
sub escape { |
sub escape { |