version 1.120, 2004/07/15 14:47:31
|
version 1.123, 2004/09/07 20:38:20
|
Line 179 END
|
Line 179 END
|
' border="0" /></td>'; |
' border="0" /></td>'; |
$colspan=" colspan='2' "; |
$colspan=" colspan='2' "; |
my $cl=&mt('Close'); |
my $cl=&mt('Close'); |
my $gi=&mt('Group Import'); |
my $gi=&mt('Import'); |
$closebutton=<<END; |
$closebutton=<<END; |
<input type="button" name="close" value='$cl' onClick="self.close()"> |
<input type="button" name="close" value='$cl' onClick="self.close()"> |
END |
END |
Line 662 sub get_list {
|
Line 662 sub get_list {
|
if ($ENV{'form.updatedisplay'}) { |
if ($ENV{'form.updatedisplay'}) { |
foreach (keys %hash) { |
foreach (keys %hash) { |
delete $hash{$_} if ($_ =~ /^dirlist_files_/); |
delete $hash{$_} if ($_ =~ /^dirlist_files_/); |
|
delete $hash{$_} if ($_ =~ /^dirlist_timestamp_files_/); |
} |
} |
} |
} |
|
|
if ($hash{'dirlist_files_'.$luri}) { |
if (defined($hash{'dirlist_files_'.$luri}) && |
|
$hash{'dirlist_timestamp_files_'.$luri}+600 > (time)) { |
@list = split(/\n/,$hash{'dirlist_files_'.$luri}); |
@list = split(/\n/,$hash{'dirlist_files_'.$luri}); |
} elsif ($uri=~/\.(page|sequence)\/$/) { |
} elsif ($uri=~/\.(page|sequence)\/$/) { |
# is a page or a sequence |
# is a page or a sequence |
Line 681 sub get_list {
|
Line 683 sub get_list {
|
# is really a directory |
# is really a directory |
@list = &Apache::lonnet::dirlist($uri); |
@list = &Apache::lonnet::dirlist($uri); |
$hash{'dirlist_files_'.$luri} = join("\n",@list); |
$hash{'dirlist_files_'.$luri} = join("\n",@list); |
|
$hash{'dirlist_timestamp_files_'.$luri} = time; |
} |
} |
return @list=&match_ext($r,@list); |
return @list=&match_ext($r,@list); |
} |
} |