version 1.5, 2001/06/08 13:02:44
|
version 1.8, 2001/08/07 21:47:34
|
Line 5
|
Line 5
|
# |
# |
# 05/29/00,05/30 Gerd Kortemeyer) |
# 05/29/00,05/30 Gerd Kortemeyer) |
# |
# |
# 10/05,05/28,05/30,06/01,06/08 Gerd Kortemeyer |
# 10/05,05/28,05/30,06/01,06/08,06/09,07/04,08/07 Gerd Kortemeyer |
|
|
package Apache::lonmenu; |
package Apache::lonmenu; |
|
|
Line 76 sub rawconfig {
|
Line 76 sub rawconfig {
|
my $crs=''; |
my $crs=''; |
if ($ENV{'request.course.id'}) { |
if ($ENV{'request.course.id'}) { |
$crs='/'.$ENV{'request.course.id'}; |
$crs='/'.$ENV{'request.course.id'}; |
$crs=~s/\_/\//; |
if ($ENV{'request.course.sec'}) { |
|
$crs.='_'.$ENV{'request.course.sec'}; |
|
} |
|
$crs=~s/\_/\//g; |
} |
} |
my $pub=($ENV{'request.state'} eq 'published'); |
my $pub=($ENV{'request.state'} eq 'published'); |
my $con=($ENV{'request.state'} eq 'construct'); |
my $con=($ENV{'request.state'} eq 'construct'); |
Line 107 sub rawconfig {
|
Line 110 sub rawconfig {
|
} |
} |
} elsif ($pro eq 'author') { |
} elsif ($pro eq 'author') { |
if ($author) { |
if ($author) { |
|
if (($prt eq 'rca') && ($ENV{'request.role'}=~/^ca/)) { |
|
my ($cadom,$caname)= |
|
($ENV{'request.role'}=~/(\w+)\/(\w+)$/); |
|
$output.=switch($caname,$cadom, |
|
$row,$col,$img,$top,$bot,$act); |
|
} elsif ($prt eq 'any') { |
|
$output.=switch($ENV{'user.name'},$ENV{'user.domain'}, |
|
$row,$col,$img,$top,$bot,$act); |
|
} |
} |
} |
} |
} |
} @desklines; |
} @desklines; |