--- loncom/interface/loncreateuser.pm 2005/04/07 06:56:23 1.101
+++ loncom/interface/loncreateuser.pm 2005/06/06 00:06:12 1.102
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.101 2005/04/07 06:56:23 albertel Exp $
+# $Id: loncreateuser.pm,v 1.102 2005/06/06 00:06:12 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -544,7 +544,7 @@ END
$bgcol=~s/[^7-9a-e]//g;
$bgcol=substr($bgcol.$bgcol.$bgcol.'ffffff',2,6);
if ($area=~/^\/(\w+)\/(\d\w+)\/(\w+)/) {
- $carea.='
Section/Group: '.$3;
+ $carea.='
Section/Group: '.$3;
$sortkey.="\0$3";
}
$area=$carea;
@@ -990,7 +990,7 @@ ENDMODIFYUSERHEAD
&Apache::lonnet::modifyuserauth(
$env{'form.ccdomain'},$env{'form.ccuname'},
$amode,$genpwd));
- $r->print('
'.&mt('Home server').': '.&Apache::lonnet::homeserver
+ $r->print('
'.&mt('Home server').': '.&Apache::lonnet::homeserver
($env{'form.ccuname'},$env{'form.ccdomain'}));
} else {
# Okay, this is a non-fatal error.
@@ -1088,7 +1088,7 @@ END
# Revoke standard role
$r->print(&mt('Revoking').' '.$2.' in '.$1.': '.
&Apache::lonnet::revokerole($env{'form.ccdomain'},
- $env{'form.ccuname'},$1,$2).'
');
+ $env{'form.ccuname'},$1,$2).'
');
if ($2 eq 'st') {
$1=~/^\/(\w+)\/(\w+)/;
my $cid=$1.'_'.$2;
@@ -1099,7 +1099,7 @@ END
&Apache::lonnet::escape($env{'form.ccuname'}.':'.
$env{'form.ccdomain'}).'='.
&Apache::lonnet::escape($now.':'),
- $env{'course.'.$cid.'.home'}).'
');
+ $env{'course.'.$cid.'.home'}).'
');
}
}
if ($_=~/^form\.rev\:([^\_]+)\_cr\.cr\/(\w+)\/(\w+)\/(\w+)$/) {
@@ -1108,13 +1108,13 @@ END
' '.$4.' by '.$3.'@'.$2.' in '.$1.': '.
&Apache::lonnet::revokecustomrole($env{'form.ccdomain'},
$env{'form.ccuname'},$1,$2,$3,$4).
- '
');
+ '
');
}
} elsif ($_=~/^form\.del/) {
if ($_=~/^form\.del\:([^\_]+)\_([^\_]+)$/) {
$r->print(&mt('Deleting').' '.$2.' in '.$1.': '.
&Apache::lonnet::assignrole($env{'form.ccdomain'},
- $env{'form.ccuname'},$1,$2,$now,0,1).'
');
+ $env{'form.ccuname'},$1,$2,$now,0,1).'
');
if ($2 eq 'st') {
$1=~/^\/(\w+)\/(\w+)/;
my $cid=$1.'_'.$2;
@@ -1125,7 +1125,7 @@ END
&Apache::lonnet::escape($env{'form.ccuname'}.':'.
$env{'form.ccdomain'}).'='.
&Apache::lonnet::escape($now.':'),
- $env{'course.'.$cid.'.home'}).'
');
+ $env{'course.'.$cid.'.home'}).'
');
}
}
} elsif ($_=~/^form\.ren/) {
@@ -1245,7 +1245,7 @@ END
}
}
} else {
- $r->print('
'.&mt('ERROR').': '.&mt('Unknown command').' '.$_.'
'.&mt('ERROR').': '.&mt('Unknown command').' '.$_.'