version 1.497, 2006/12/24 21:13:37
|
version 1.500, 2007/01/15 18:04:12
|
Line 59 use Apache::lonnet;
|
Line 59 use Apache::lonnet;
|
use GDBM_File; |
use GDBM_File; |
use POSIX qw(strftime mktime); |
use POSIX qw(strftime mktime); |
use Apache::lonmenu(); |
use Apache::lonmenu(); |
use Apache::lonenc; |
use Apache::lonenc(); |
use Apache::lonlocal; |
use Apache::lonlocal; |
use HTML::Entities; |
use HTML::Entities; |
use Apache::lonhtmlcommon(); |
use Apache::lonhtmlcommon(); |
Line 3344 sub bodytag {
|
Line 3344 sub bodytag {
|
my ($role,$realm) = split(/\./,$env{'request.role'},2); |
my ($role,$realm) = split(/\./,$env{'request.role'},2); |
if ($role eq 'ca') { |
if ($role eq 'ca') { |
my ($rdom,$rname) = ($realm =~ m{^/($match_domain)/($match_username)$}); |
my ($rdom,$rname) = ($realm =~ m{^/($match_domain)/($match_username)$}); |
$realm = &plainname($rname,$rdom).':'.$rdom; |
$realm = &plainname($rname,$rdom); |
} |
} |
# realm |
# realm |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |
Line 6125 sub store_settings {
|
Line 6125 sub store_settings {
|
} |
} |
# Make sure these settings stick around in this session, too |
# Make sure these settings stick around in this session, too |
&Apache::lonnet::appenv(%AppHash); |
&Apache::lonnet::appenv(%AppHash); |
&Apache::lonnet::logthis(join(':',%AppHash)); |
|
return; |
return; |
} |
} |
|
|
sub restore_course_settings { |
sub restore_course_settings { |
return &return_settings($env{'request.course.id'},@_); |
return &restore_settings($env{'request.course.id'},@_); |
} |
} |
|
|
sub restore_settings { |
sub restore_settings { |