--- loncom/auth/lonlogin.pm 2002/05/25 21:46:15 1.17 +++ loncom/auth/lonlogin.pm 2002/09/17 20:06:34 1.24 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.17 2002/05/25 21:46:15 www Exp $ +# $Id: lonlogin.pm,v 1.24 2002/09/17 20:06:34 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -30,6 +30,8 @@ # 1/17/01 Gerd Kortemeyer # # 2/7/02,2/8,2/12,2/14,2/15,2/19 Josh Brunskole +# +# 7/10/02 Jeremy Bowers package Apache::lonlogin; @@ -50,6 +52,8 @@ sub handler { &Apache::loncommon::get_unprocessed_cgi ($ENV{'QUERY_STRING'},['interface']); + $ENV{'form.interface'}=~s/\W//g; + my $fullgraph=($ENV{'form.interface'} ne 'textual'); my $iconpath= $r->dir_config('lonIconsURL'); @@ -74,7 +78,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 @@ -100,7 +104,7 @@ sub handler { my $logtoken=Apache::lonnet::reply( 'tmpput:'.$ukey.$lkey.'&'.$firsturl, $lonhost); - + my $domainlogo=&Apache::loncommon::domainlogo(); # --------------------------------------------------- Print login screen header $r->print(< @@ -113,10 +117,23 @@ 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(< ENDSCRIPT @@ -160,80 +178,80 @@ ENDSERVERFORM - + The Learning Online Network with CAPA -   +   - + - + - + - - + + Accessibility Options
- + About LON-CAPA - + - +
- +
- + - + ENDTOP } $r->print(< +
- + - - + + - - + + - - + + -
User Authentication

   User Name:


   User Name:

   Password:   Password:
   Domain:   Domain:
+
- +
@@ -245,38 +263,38 @@ ENDLOGIN - + - + - +
- - - - - - @@ -286,32 +304,34 @@ ENDLOGIN    System Administration:
      $sysadm
   Server Administration:
-       $servadm +       $servadm
 
- + - + - + - + - + - + - +
+    Domain:  +  $domain
+    Server:  +  $lonhost ($role)
+    Load:  +  $loadpercent percent
+$domainlogo +