version 1.1, 2002/08/27 12:48:46
|
version 1.2, 2002/08/27 15:17:45
|
Line 47 sub handler {
|
Line 47 sub handler {
|
<title>The LearningOnline Network with CAPA</title> |
<title>The LearningOnline Network with CAPA</title> |
</head> |
</head> |
ENDDOCUMENT |
ENDDOCUMENT |
$r->print(&Apache::loncommon::bodytag("Syllabus")); |
my (undef,undef,$cdom,$cnum)=split(/\//,$r->uri); |
|
my %courseenv=&Apache::lonnet::dump('environment',$cdom,$cnum); |
|
$r->print(&Apache::loncommon::bodytag("Syllabus",'','','',$cdom)); |
|
$r->print('<h1>'.$courseenv{'description'}.'</h1><h3>'. |
|
$Apache::lonnet::domaindescription{$cdom}.'</h3>'); |
|
# This handler might be called anonymously ... |
|
# ----------------------------------------------------- Only if not public call |
|
if ($ENV{'user.environment'}) { |
# does this user have privileges to post, etc? |
# does this user have privileges to post, etc? |
my $allowed=0; |
my $allowed=0; |
if ($ENV{'request.course.id'}) { |
if ($ENV{'request.course.id'}) { |
$allowed=&Apache::lonnet::allowed('srm',$ENV{'request.course.id'}); |
$allowed=&Apache::lonnet::allowed('srm',$ENV{'request.course.id'}); |
|
} |
} |
} |
|
|
$r->print('</body></html>'); |
$r->print('</body></html>'); |
return OK; |
return OK; |
} |
} |