--- modules/gci/lonlogin.pm 2009/09/24 14:42:27 1.3 +++ modules/gci/lonlogin.pm 2009/11/19 15:22:20 1.5 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.3 2009/09/24 14:42:27 gci Exp $ +# $Id: lonlogin.pm,v 1.5 2009/11/19 15:22:20 gci Exp $ # # Copyright Michigan State University Board of Trustees # @@ -81,11 +81,15 @@ sub handler { &Apache::loncommon::start_page('Already logged in'); my $end_page = &Apache::loncommon::end_page(); + my $dest = '/adm/roles'; + if ($env{'form.firsturl'} ne '') { + $dest = $env{'form.firsturl'}; + } $r->print( $start_page .'
'.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].', - '','','','').'
' + '','','','').'' .'' .$end_page ); @@ -121,6 +125,10 @@ sub handler { (&Apache::lonnet::domain($env{'form.domain'},'description'))) { $domain=$env{'form.domain'}; } + my $sitename = 'GCI WebCenter'; + my $shortsitename = 'WebCenter'; + my $existing = 'Existing WebCenter user?'; + my $sitedesc = &mt('The Geoscience Concept Inventory (GCI) [_1]WebCenter[_2] is a place to comment on existing concept questions, or submit new ones, and is also a place to build and manage Concept Tests which your students will complete via the [_3]Testing Center[_2].','','',''); my $role = $r->dir_config('lonRole'); my $loadlim = $r->dir_config('lonLoadLim'); my $servadm = $r->dir_config('lonAdmEMail'); @@ -130,6 +138,14 @@ sub handler { my $expire = $r->dir_config('lonExpire'); my $version = $r->dir_config('lonVersion'); my $host_name = &Apache::lonnet::hostname($lonhost); + if ($domain eq 'gcitest') { + $lonhost = 'gcitestl1'; + $host_name = 'gcitest.lite.msu.edu'; + $sitename = 'GCI Testing Center'; + $shortsitename = 'Testing Center'; + $existing = 'Student with Testing Center account?'; + $sitedesc = &mt('The GCI Testing Center is used by [_1]students[_2] to complete online concept tests created by their instructors using questions available in the Geoscience Concept Inventory.','',''); + } # --------------------------------------------- Default values for login fields @@ -239,7 +255,7 @@ sub handler { .'' .'