version 1.265, 2002/08/09 18:12:19
|
version 1.268, 2002/08/17 18:23:27
|
Line 820 sub flushcourselogs {
|
Line 820 sub flushcourselogs {
|
my $entry=$_; |
my $entry=$_; |
$entry=~/\_\_\_(\w+)\/(\w+)\/(.*)\_\_\_(\w+)$/; |
$entry=~/\_\_\_(\w+)\/(\w+)\/(.*)\_\_\_(\w+)$/; |
my %temphash=($entry => $accesshash{$entry}); |
my %temphash=($entry => $accesshash{$entry}); |
if (&Apache::lonnet::put('resevaldata',\%temphash,$1,$2) eq 'ok') { |
if (&Apache::lonnet::put('nohist_resevaldata',\%temphash,$1,$2) eq 'ok') { |
delete $accesshash{$entry}; |
delete $accesshash{$entry}; |
} |
} |
} |
} |
Line 1114 sub str2hashref {
|
Line 1114 sub str2hashref {
|
} |
} |
} else { |
} else { |
$string =~ s/^(.*?)=//; |
$string =~ s/^(.*?)=//; |
$key=$1 |
$key=&unescape($1); |
} |
} |
$string =~ s/^=//; |
$string =~ s/^=//; |
|
|
Line 3135 sub declutter {
|
Line 3135 sub declutter {
|
return $thisfn; |
return $thisfn; |
} |
} |
|
|
|
# ------------------------------------------------------------- Clutter up URLs |
|
|
|
sub clutter { |
|
my $thisfn='/'.&declutter(shift); |
|
unless ($thisfn=~/^\/(uploaded|adm)\//) { $thisfn='/res'.$thisfn; } |
|
return $thisfn; |
|
} |
|
|
# -------------------------------------------------------- Escape Special Chars |
# -------------------------------------------------------- Escape Special Chars |
|
|
sub escape { |
sub escape { |