--- loncom/auth/lonroles.pm 2004/05/08 16:26:32 1.90 +++ loncom/auth/lonroles.pm 2004/10/11 18:27:49 1.94.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.90 2004/05/08 16:26:32 www Exp $ +# $Id: lonroles.pm,v 1.94.2.2 2004/10/11 18:27:49 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -47,7 +47,10 @@ sub redirect_user { $r->send_http_header; my $swinfo=&Apache::lonmenu::rawconfig(); my $bodytag=&Apache::loncommon::bodytag('Switching Role'); - $r->print (<print(<$title @@ -57,6 +60,7 @@ $bodytag $swinfo

$msg

+Continue ENDREDIR @@ -135,6 +139,7 @@ sub handler { &Apache::lonnet::assign_access_key( $ENV{'form.newkey'}, $authdom,$authnum, + $cdom,$cnum, $ENV{'user.domain'}, $ENV{'user.name'}, 'Assigned from '.$ENV{'REMOTE_ADDR'}.' at '.localtime().' for '. @@ -276,10 +281,7 @@ ENDENTERKEY my $swinfo=&Apache::lonmenu::rawconfig(); my $bodytag=&Apache::loncommon::bodytag('User Roles'); - my $helptag='
'.&Apache::loncommon::help_open_topic - ("General_Intro",&mt("Click here for help")).''. - &Apache::loncommon::help_open_faq(1,&mt('Click here for FAQ')).''. - &Apache::loncommon::help_open_bug('',&mt('Click here to report bugs')).'
'; + my $helptag='
'.&Apache::loncommon::help_open_menu('','General Intro','General_Intro','User Roles',1,undef,undef,undef,undef,,&mt("Click here for help")).'
'; $r->print(< @@ -451,7 +453,7 @@ ENDHEADER $Apache::lonnet::hostname{$home}. '/adm/login?domain='.$ENV{'user.domain'}. '&username='.$ENV{'user.name'}. - '&firsturl=/priv/'.$trest); + '&firsturl=/priv/'.$trest.'/'); } #next if ($home eq 'no_host'); $home = $Apache::lonnet::hostname{$home}; @@ -475,7 +477,7 @@ ENDHEADER $Apache::lonnet::hostname{$home}. '/adm/login?domain='.$ENV{'user.domain'}. '&username='.$ENV{'user.name'}. - '&firsturl=/priv/'.$ENV{'user.name'}); + '&firsturl=/priv/'.$ENV{'user.name'}.'/'); } #next if ($home eq 'no_host'); $home = $Apache::lonnet::hostname{$home};