--- loncom/interface/loncreateuser.pm 2001/03/02 20:31:34 1.4
+++ loncom/interface/loncreateuser.pm 2001/03/02 22:06:43 1.5
@@ -237,6 +237,9 @@ Internally authenticated (with initial p
ENDNUSER
} else {
$r->print('
Existing user '.$ccuname.' at '.$ccdomain.'
');
+ $r->print('');
+ $r->print('');
+
my $rolesdump=&Apache::lonnet::reply(
"dump:$ccdomain:$ccuname:roles",$uhome);
unless ($rolesdump eq 'con_lost') {
@@ -253,10 +256,9 @@ ENDNUSER
my ($trole,$tend,$tstart)=split(/_/,$role);
my $bgcol='ffffff';
my $allows=0;
- if ($area=~/^\/(\w+)\/(\d\w+)\/(\w+)/) {
+ if ($area=~/^\/(\w+)\/(\d\w+)/) {
my %coursedata=&Apache::lonnet::coursedescription($1.'_'.$2);
- $area='Course: '.
- $coursedata{'description'}.'
Section/Group: '.$3;
+ my $carea='Course: '.$coursedata{'description'};
$inccourses{$1.'_'.$2}=1;
if (&Apache::lonnet::allowed('c'.$trole,$1.'_'.$2)) {
$allows=1;
@@ -264,6 +266,10 @@ ENDNUSER
$bgcol=$1.'_'.$2;
$bgcol=~s/[^8-9b-e]//g;
$bgcol=substr($bgcol.$bgcol.$bgcol.'ffffff',0,6);
+ if ($area=~/^\/(\w+)\/(\d\w+)\/(\w+)/) {
+ $carea.='
Section/Group: '.$3;
+ }
+ $area=$carea;
} else {
if ($1) {
$incdomains{$1}=1;
@@ -396,12 +402,26 @@ ENDTHREEHEAD
$1,$2,$now).'
');
}
} keys %ENV;
- $r->print('