Return to scripttag.pm CVS log | Up to [LON-CAPA] / loncom / xml |
version 1.11, 2000/08/11 15:22:00 | version 1.12, 2000/08/11 15:27:58 |
---|---|
Line 93 sub getfile { | Line 93 sub getfile { |
my ($filename) = @_; | my ($filename) = @_; |
my $a=""; | my $a=""; |
$filename=~ s/\s+//g; | $filename=~ s/^\s*(\S+)\s*$/$1/; ## strip off leading and trailing spaces |
$filename="/home/httpd/html/res".$filename; | $filename="/home/httpd/html/res".$filename; |
if (! -e $filename ) { | if (! -e $filename ) { |
&Apache::lonnet::subscribe($filename); | &Apache::lonnet::subscribe($filename); |