--- loncom/auth/lonlogin.pm 2002/07/10 17:47:01 1.19 +++ loncom/auth/lonlogin.pm 2003/01/08 22:43:10 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.19 2002/07/10 17:47:01 bowersj2 Exp $ +# $Id: lonlogin.pm,v 1.27 2003/01/08 22:43:10 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -56,7 +56,8 @@ sub handler { my $fullgraph=($ENV{'form.interface'} ne 'textual'); - my $iconpath= $r->dir_config('lonIconsURL'); + my $iconpath= 'http://'.$ENV{'HTTP_HOST'}.':8080'. + $r->dir_config('lonIconsURL'); my $domain = $r->dir_config('lonDefDomain'); my $role = $r->dir_config('lonRole'); my $loadlim = $r->dir_config('lonLoadLim'); @@ -78,7 +79,7 @@ sub handler { my $firsturl=$ENV{'request.firsturl'}; # ---------------------------------------- Are we access server and overloaded? if (($role eq 'access') && ($loadpercent>100.0)) { - $otherserver=Apache::lonnet::spareserver(); + $otherserver=Apache::lonnet::spareserver($loadpercent); } # -------------------------------------------------------- Set login parameters @@ -104,7 +105,7 @@ sub handler { my $logtoken=Apache::lonnet::reply( 'tmpput:'.$ukey.$lkey.'&'.$firsturl, $lonhost); - + my $domainlogo=&Apache::loncommon::domainlogo(); # --------------------------------------------------- Print login screen header $r->print(< @@ -117,11 +118,24 @@ ENDHEADER my $jsh=Apache::File->new($include."/londes.js"); $r->print(<$jsh>); } + +# ----------------------------------------------------------- Front page design + my $pgbg=&Apache::loncommon::designparm('login.pgbg'); + my $font=&Apache::loncommon::designparm('login.font'); + my $link=&Apache::loncommon::designparm('login.link'); + my $vlink=&Apache::loncommon::designparm('login.vlink'); + my $alink=&Apache::loncommon::designparm('login.alink'); + my $mainbg=&Apache::loncommon::designparm('login.mainbg'); + my $sidebg=&Apache::loncommon::designparm('login.sidebg'); + my $logo=&Apache::loncommon::designparm('login.logo'); + my $img=&Apache::loncommon::designparm('login.img'); + + # ---------------------------------------------------------- Serve rest of page $r->print(< + + ENDDOCUMENT } $r->print(''); 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.