File:  [LON-CAPA] / loncom / auth / lonlogin.pm
Revision 1.51: download - view: text, annotated - select for diffs
Wed Sep 17 02:24:14 2003 UTC (20 years, 8 months ago) by www
Branches: MAIN
CVS tags: HEAD
more work on German translation
work on login page
Portuguese buttons

    1: # The LearningOnline Network
    2: # Login Screen
    3: #
    4: # $Id: lonlogin.pm,v 1.51 2003/09/17 02:24:14 www Exp $
    5: #
    6: # Copyright Michigan State University Board of Trustees
    7: #
    8: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
    9: #
   10: # LON-CAPA is free software; you can redistribute it and/or modify
   11: # it under the terms of the GNU General Public License as published by
   12: # the Free Software Foundation; either version 2 of the License, or
   13: # (at your option) any later version.
   14: #
   15: # LON-CAPA is distributed in the hope that it will be useful,
   16: # but WITHOUT ANY WARRANTY; without even the implied warranty of
   17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18: # GNU General Public License for more details.
   19: #
   20: # You should have received a copy of the GNU General Public License
   21: # along with LON-CAPA; if not, write to the Free Software
   22: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   23: #
   24: # /home/httpd/html/adm/gpl.txt
   25: #
   26: # http://www.lon-capa.org/
   27: #
   28: # 5/21/99,5/22,5/25,5/26,5/31,6/2,6/10,7/12,7/14,
   29: # 1/14/00,5/29,5/30,6/1,6/29,7/1,11/9,
   30: # 1/17/01 Gerd Kortemeyer
   31: #
   32: # 2/7/02,2/8,2/12,2/14,2/15,2/19 Josh Brunskole
   33: # 
   34: # 7/10/02 Jeremy Bowers
   35: 
   36: package Apache::lonlogin;
   37: 
   38: use strict;
   39: use Apache::Constants qw(:common);
   40: use Apache::File ();
   41: use Apache::lonnet();
   42: use Apache::loncommon();
   43: use Apache::lonauth();
   44: use Apache::lonlocal;
   45: 
   46: sub handler {
   47:     my $r = shift;
   48:     $r->content_type('text/html');
   49:     &Apache::loncommon::no_cache($r);
   50:     $r->send_http_header;
   51:     return OK if $r->header_only;
   52: 
   53: 
   54: # Are we re-routing?
   55:     if (-e '/home/httpd/html/lon-status/reroute.txt') {
   56: 	&Apache::lonauth::reroute($r);
   57: 	return OK;
   58:     }
   59: 
   60:     &Apache::loncommon::get_unprocessed_cgi
   61:      ($ENV{'QUERY_STRING'}.'&'.$ENV{'request.querystring'},
   62:       ['interface','username','domain','firsturl','localpath','localres']);
   63:  
   64: # -------------------------------------------------------------------- Language
   65: 
   66:     &Apache::lonlocal::get_language_handle();
   67: 
   68: # ----------------------------------------------------------- Process Interface
   69:     $ENV{'form.interface'}=~s/\W//g;
   70: 
   71:     my $textbrowsers=$r->dir_config('lonTextBrowsers');
   72:     my $httpbrowser=$ENV{"HTTP_USER_AGENT"};
   73:     
   74:     foreach (split(/\:/,$textbrowsers)) {
   75: 	if ($httpbrowser=~/$_/i) {
   76: 	    $ENV{'form.interface'}='textual';
   77:         }
   78:     }
   79: 
   80:     my $fullgraph=($ENV{'form.interface'} ne 'textual');
   81:     my $port_to_use=$r->dir_config('lonhttpdPort');
   82:     if (!defined($port_to_use)) {
   83: 	$port_to_use='8080';
   84:     }
   85:     my $iconpath= 'http://'.$ENV{'HTTP_HOST'}.':'.$port_to_use.
   86:                   $r->dir_config('lonIconsURL');
   87:     my $domain  = $r->dir_config('lonDefDomain');
   88:     if (($ENV{'form.domain'}) && 
   89: 	 ($Apache::lonnet::domaindescription{$ENV{'form.domain'}})) {
   90: 	$domain=$ENV{'form.domain'};
   91:     }
   92:     my $role    = $r->dir_config('lonRole');
   93:     my $loadlim = $r->dir_config('lonLoadLim');
   94:     my $servadm = $r->dir_config('lonAdmEMail');
   95:     my $sysadm  = $r->dir_config('lonSysEMail');
   96:     my $lonhost = $r->dir_config('lonHostID');
   97:     my $tabdir  = $r->dir_config('lonTabDir');
   98:     my $include = $r->dir_config('lonIncludes');
   99:     my $expire  = $r->dir_config('lonExpire');
  100:     my $version = $r->dir_config('lonVersion');
  101: 
  102: # --------------------------------------------- Default values for login fields
  103: 
  104:     my $authusername=($ENV{'form.username'}?$ENV{'form.username'}:'');
  105:     my $authdomain=($ENV{'form.domain'}?$ENV{'form.domain'}:$domain);
  106: 
  107: # ---------------------------------------------------------- Determine own load
  108:     my $loadavg;
  109:     {
  110: 	my $loadfile=Apache::File->new('/proc/loadavg');
  111: 	$loadavg=<$loadfile>;
  112:     }
  113:     $loadavg =~ s/\s.*//g;
  114:     my $loadpercent=100*$loadavg/$loadlim;
  115:     my $userloadpercent=&Apache::lonnet::userload();
  116: 
  117: # ------------------------------------------------------- Do the load balancing
  118:     my $otherserver='http://'.$ENV{'SERVER_NAME'};
  119:     my $firsturl=
  120:     ($ENV{'request.firsturl'}?$ENV{'request.firsturl'}:$ENV{'form.firsturl'});
  121: # ---------------------------------------- Are we access server and overloaded?
  122:     if (($role eq 'access') &&
  123: 	(($userloadpercent>100.0)||($loadpercent>100.0))) {
  124:         my $unloaded=Apache::lonnet::spareserver($loadpercent,$userloadpercent);
  125: 	if ($unloaded) { $otherserver=$unloaded; }
  126:     }
  127: 
  128: # ----------------------------------------------------------- Get announcements
  129:     my $announcements=&Apache::lonnet::getannounce();
  130: # -------------------------------------------------------- Set login parameters
  131: 
  132:     my @hexstr=('0','1','2','3','4','5','6','7',
  133:                 '8','9','a','b','c','d','e','f');
  134:     my $lkey='';
  135:     for (0..7) {
  136:         $lkey.=$hexstr[rand(15)];
  137:     }
  138: 
  139:     my $ukey='';
  140:     for (0..7) {
  141:         $ukey.=$hexstr[rand(15)];
  142:     }
  143: 
  144:     my $lextkey=hex($lkey);
  145:     if ($lextkey>2147483647) { $lextkey-=4294967296; }
  146: 
  147:     my $uextkey=hex($ukey);
  148:     if ($uextkey>2147483647) { $uextkey-=4294967296; }
  149: 
  150: # -------------------------------------------------------- Store away log token
  151:     my $logtoken=Apache::lonnet::reply(
  152:        'tmpput:'.$ukey.$lkey.'&'.$firsturl,
  153:        $lonhost);
  154: 
  155: # ------------------- If we cannot talk to ourselves, we are in serious trouble
  156: 
  157:     if ($logtoken eq 'con_lost') {
  158:         my $spares='';
  159:         foreach (keys %Apache::lonnet::hostname) {
  160:             if ($_ ne $lonhost) {
  161:                $spares.='<br /><a href="http://'.$Apache::lonnet::hostname{$_}.
  162: 		 '/adm/login?domain='.$authdomain.'">'.
  163:                  $Apache::lonnet::hostname{$_}.'</a>';
  164:                if ($Apache::lonnet::spareid{$_}) {
  165: 		   $spares.=' (preferred)';
  166:                }
  167: 	   }
  168:         }
  169: 	$r->print(<<ENDTROUBLE);
  170: <html>
  171: <head><title>The LearningOnline Network with CAPA</title></head>
  172: <body bgcolor="#FFFFFF">
  173: <img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" />
  174: <h3>This LON-CAPA server is temporarily not available for login</h3>
  175: <p>Please attempt to login to one of the following servers:</p>$spares
  176: <p>If the problem persists, please contact <tt>$servadm</tt>.</p>
  177: </body>
  178: </html>
  179: ENDTROUBLE
  180:         return OK;
  181:     }
  182: 
  183: # ----------------------------------------------- Apparently we are in business
  184: 
  185:     my $domainlogo=&Apache::loncommon::domainlogo($domain);
  186:     $servadm=~s/\,/\<br \/\>/g;
  187:     $sysadm=~s/\,/\<br \/\>/g;
  188: 
  189: # --------------------------------------------------- Print login screen header
  190:     $r->print(<<ENDHEADER);
  191: <html>
  192: <head>
  193: <meta HTTP-EQUIV="Refresh" CONTENT="$expire; url=/adm/roles" />
  194: <title>The LearningOnline Network with CAPA Login</title>
  195: </head>
  196: ENDHEADER
  197: # ---------------------------------------------------- Serve out DES JavaScript
  198:     {
  199: 	my $jsh=Apache::File->new($include."/londes.js");
  200:         $r->print(<$jsh>);
  201:     }
  202: 
  203: # ----------------------------------------------------------- Front page design
  204:     my $pgbg=
  205:       ($fullgraph?&Apache::loncommon::designparm('login.pgbg',$domain):'#FFFFFF');
  206:     my $font=
  207:       ($fullgraph?&Apache::loncommon::designparm('login.font',$domain):'#000000');
  208:     my $link=
  209:       ($fullgraph?&Apache::loncommon::designparm('login.link',$domain):'#0000FF');
  210:     my $vlink=
  211:       ($fullgraph?&Apache::loncommon::designparm('login.vlink',$domain):'#0000FF');
  212:     my $alink=&Apache::loncommon::designparm('login.alink',$domain);
  213:     my $mainbg=
  214:       ($fullgraph?&Apache::loncommon::designparm('login.mainbg',$domain):'#FFFFFF');
  215:     my $sidebg=
  216:       ($fullgraph?&Apache::loncommon::designparm('login.sidebg',$domain):'#FFFFFF');
  217:     my $logo=&Apache::loncommon::designparm('login.logo',$domain);
  218:     my $img=&Apache::loncommon::designparm('login.img',$domain);
  219: 
  220: # ----------------------------------------------------------------------- Texts
  221: 
  222: my %lt=&Apache::lonlocal::texthash(
  223: 		  'un'  => 'Username',
  224: 		  'pw'  => 'Password',
  225: 		  'dom' => 'Domain',
  226: 		  'perc' => 'percent',
  227: 		  'user' => 'User',
  228: 		  'load' => 'load',
  229: 		  'log' => 'Log in',
  230: 		  'help' => 'Help',
  231: 		  'serv' => 'Server',
  232:                   'servadm' => 'Server Administration',
  233:                   'sysadm' => 'System Administration');
  234: 
  235: 
  236: # ---------------------------------------------------------- Serve rest of page
  237:     $r->print(<<ENDSCRIPT);
  238: 
  239: <body bgcolor="$pgbg" text="$font" link="$link" vlink="$vlink" alink="$alink"
  240:   topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
  241: 
  242:  <script language="JavaScript">
  243:     function send()
  244:     {
  245: 	this.document.server.elements.uname.value
  246:        =this.document.client.elements.uname.value;
  247: 
  248:         this.document.server.elements.udom.value
  249:        =this.document.client.elements.udom.value;
  250: 
  251:         this.document.server.elements.imagesuppress.value
  252:        =this.document.client.elements.imagesuppress.checked;
  253: 
  254:         this.document.server.elements.embedsuppress.value
  255:        =this.document.client.elements.embedsuppress.checked;
  256: 
  257:         this.document.server.elements.appletsuppress.value
  258:        =this.document.client.elements.appletsuppress.checked;
  259: 
  260:         this.document.server.elements.fontenhance.value
  261:        =this.document.client.elements.fontenhance.checked;
  262: 
  263:         this.document.server.elements.blackwhite.value
  264:        =this.document.client.elements.blackwhite.checked;
  265: 
  266:         this.document.server.elements.remember.value
  267:        =this.document.client.elements.remember.checked;
  268: 
  269:         uextkey=this.document.client.elements.uextkey.value;
  270:         lextkey=this.document.client.elements.lextkey.value;
  271:         initkeys();
  272: 
  273:         this.document.server.elements.upass.value
  274: 	    =crypted(this.document.client.elements.upass.value);
  275: 
  276:         this.document.server.submit();
  277: 	return false;
  278:     }
  279:  </script>
  280: ENDSCRIPT
  281: 
  282:     if ($fullgraph) {
  283: 	$r->print(
  284: 		  '<table width="100%" cellpadding=0 cellspacing=0 border=0>');
  285:     }
  286: 
  287:     $r->print(<<ENDSERVERFORM);
  288:   <form name="server" action="$otherserver/adm/authenticate" method="post" target="_top">
  289:    <input type="hidden" name="logtoken" value="$logtoken" />
  290:    <input type="hidden" name="serverid" value="$lonhost" />
  291:    <input type="hidden" name="interface" value="$ENV{'form.interface'}" />
  292:    <input type="hidden" name="uname" value="" />
  293:    <input type="hidden" name="upass" value="" />
  294:    <input type="hidden" name="udom" value="" />
  295:    <input type="hidden" name="imagesuppress"  value="" />
  296:    <input type="hidden" name="appletsuppress"  value="" />
  297:    <input type="hidden" name="embedsuppress"  value="" />
  298:    <input type="hidden" name="fontenhance"  value="" />
  299:    <input type="hidden" name="blackwhite"  value="" />
  300:    <input type="hidden" name="remember"  value="" />
  301:    <input type="hidden" name="localpath" value="$ENV{'form.localpath'}" />
  302:    <input type="hidden" name="localres" value="$ENV{'form.localres'}" />
  303:   </form>
  304: ENDSERVERFORM
  305:     if ($fullgraph) { $r->print(<<ENDTOP);
  306:   <!-- The LON-CAPA Header -->
  307:   <tr>
  308: 
  309:    <!-- Row 1 Columns 2-4 -->
  310:    <td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="$pgbg"><img src="$img" border=0 alt="The Learning Online Network with CAPA" /></td>
  311:   </tr>
  312: 
  313:   <!-- The gray bar that starts the two table frames -->
  314:   <tr>
  315: 
  316:    <!-- Row 2 Column 1 -->
  317:    <td width=182 height=27 bgcolor="$sidebg">&nbsp;</td>
  318: 
  319:    <!-- Row 2 Column 2 -->
  320:    <td width=27 height=27 align="left" background="$iconpath/filltop.gif"><img src="$iconpath/upperleft.gif" border=0 alt="" /></td>
  321: 
  322:    <!-- Row 2 Column 3 -->
  323:    <td height=27 background="$iconpath/filltop.gif"><img src="$iconpath/filltop.gif" alt="" /></td>
  324: 
  325:    <!-- Row 2 Column 4 -->
  326:    <td width=27 height=27 align="right" background="$iconpath/filltop.gif"><img src="$iconpath/upperright.gif" border=0 alt="" /></td>
  327:   </tr>
  328:   <tr>
  329:    
  330:    <!-- A cell that will hold the 'access' and 'about' buttons -->
  331:    <!-- Row 3 Column 1 -->
  332:    <td valign="top" height=60 align="center" bgcolor="$sidebg">
  333:     <a href="/adm/login?interface=textual"><img src="$iconpath/accessbutton.gif" border=0 alt="Accessibility Options" /></a>
  334:     <br />
  335:     <a href="/adm/about.html"><img src="$iconpath/aboutlon.gif" border=0 alt="About LON-CAPA" /></a>
  336:    </td>
  337: 
  338:    <!-- The shaded space between the two main columns -->
  339:    <!-- Row 3 Column 2 -->
  340:    <td width=27 height=60 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
  341: 
  342:    <!-- The right main column holding the large LON-CAPA logo-->
  343:    <!-- Rows 3-4 Column 3 -->
  344:    <td align="center" valign="top" width="100%" height="100%" bgcolor="$mainbg">
  345:     <center>
  346:      <img src="$logo" alt="" />
  347:     </center>
  348:    </td>
  349: 
  350:    <!-- Row 3 Column 4 -->
  351:    <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
  352:   </tr>
  353:   <tr>
  354: 
  355:    <!-- The entry form -->
  356:    <!-- Row 4 Column 1 -->
  357:    <td align="center" valign="middle" bgcolor="$sidebg">
  358: ENDTOP
  359: } else {
  360:     $r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1><h2>Text-based Interface Login</h2>'.$announcements);
  361: }
  362:     $r->print('<form name="client" onsubmit="return(send())">');
  363:     unless ($fullgraph) {
  364:         $r->print(<<ENDACCESSOPTIONS);
  365: <h3>Select Accessibility Options</h3>
  366: <input type="checkbox" name="imagesuppress" /> Suppress rendering of images<br />
  367: <input type="checkbox" name="appletsuppress" /> Suppress Java applets<br />
  368: <input type="checkbox" name="embedsuppress" /> Suppress rendering of embedded multimedia<br />
  369: <input type="checkbox" name="fontenhance" /> Increase font size<br />
  370: <input type="checkbox" name="blackwhite" /> Switch to black and white mode<br />
  371: <p>If you have accessibility needs that are not addressed by this interface, 
  372: please
  373: contact the system administrator at <tt>$sysadm</tt>.</p><br />
  374: <input type="checkbox" name="remember" /> Remember these settings for next login<hr />
  375: ENDACCESSOPTIONS
  376: } else {
  377:     $r->print(<<ENDNOOPT);
  378: <input type="hidden" name="imagesuppress"  value="" />
  379: <input type="hidden" name="embedsuppress"  value="" />
  380: <input type="hidden" name="appletsuppress"  value="" />
  381: <input type="hidden" name="fontenhance"  value="" />
  382: <input type="hidden" name="blackwhite"  value="" />
  383: <input type="hidden" name="remember"  value="" />
  384: ENDNOOPT
  385: }
  386:     $r->print(<<ENDLOGIN);
  387:      <input type="hidden" name="lextkey" value="$lextkey">
  388:      <input type="hidden" name="uextkey" value="$uextkey">
  389: 
  390:      <!-- Start the sub-table for text and input alignment -->
  391:      <table border=0 cellspacing=0 cellpadding=0>
  392:       <tr><td bgcolor="$sidebg" colspan=2><img src="$iconpath/userauthentication.gif" alt="User Authentication" /></td></tr>
  393:       <tr>
  394:        <td bgcolor="$mainbg"><br /><font size=-1><b>&nbsp;&nbsp;&nbsp;$lt{'un'}:</b></font></td>
  395:        <td bgcolor="$mainbg"><br /><input type="text" name="uname" size="10" value="$authusername" /></td>
  396:       </tr>
  397:       <tr>
  398:        <td bgcolor="$mainbg"><font size=-1><b>&nbsp;&nbsp;&nbsp;$lt{'pw'}:</b></font></td>
  399:        <td bgcolor="$mainbg"><input type="password" name="upass" size="10" /></td>
  400:       </tr>
  401:       <tr>
  402:        <td bgcolor="$mainbg"><font size=-1><b>&nbsp;&nbsp;&nbsp;$lt{'dom'}:</b></font></td>
  403:        <td bgcolor="$mainbg"><input type="text" name="udom" size="10" value="$authdomain" /></td>
  404:       </tr>
  405:       <tr>
  406:        <td bgcolor="$mainbg">&nbsp;&nbsp;&nbsp;<a href="/adm/loginproblems.html">$lt{'help'}</a></td>
  407:        <td bgcolor="$mainbg" valign="bottom" align="center">
  408:         <br />
  409:         <input type="submit" value="$lt{'log'}" />
  410:        </td>
  411:       </tr>
  412:      </table>
  413:      <!-- End sub-table -->
  414:     </form>
  415: ENDLOGIN
  416:     if ($fullgraph) {
  417: 	$r->print(<<ENDDOCUMENT);
  418:    </td>
  419: 
  420:    <!-- Row 4 Column 2 -->
  421:    <td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
  422: 
  423:    <!-- Row 4 Column 3 -->
  424: <td bgcolor="$mainbg">$announcements</td>
  425: 
  426:    <!-- Row 4 Column 4 -->
  427:    <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
  428:   </tr>
  429:   <tr>
  430: 
  431:    <!-- Row 5 Column 1 -->
  432:    <td bgcolor="$sidebg" valign="middle" align="left">
  433:      <br />
  434:      <table border=0 cellspacing=0 cellpadding=0>
  435:       <tr>
  436:        <td bgcolor="$sidebg" align="left" valign="top">
  437:         <small><b>&nbsp;&nbsp;&nbsp;$lt{'dom'}:&nbsp;</b></small>
  438:        </td>
  439:        <td bgcolor="$sidebg" align="left" valign="top">
  440:         <small><tt>&nbsp;$domain</tt></small>
  441:        </td>
  442:       </tr>
  443:       <tr>
  444:        <td bgcolor="$sidebg" align="left" valign="top">
  445:         <small><b>&nbsp;&nbsp;&nbsp;$lt{'serv'}:&nbsp;</b></small>
  446:        </td>
  447:        <td bgcolor="$sidebg" align="left" valign="top">
  448:         <small><tt>&nbsp;$lonhost ($role)</tt></small>
  449:        </td>
  450:       </tr>
  451:       <tr>
  452:        <td bgcolor="$sidebg" align="left" valign="top">
  453:         <small><b>&nbsp;&nbsp;&nbsp;Load:&nbsp;</b></small>
  454:        </td>
  455:        <td bgcolor="$sidebg" align="left" valign="top">
  456:         <small><tt>&nbsp;$loadpercent $lt{'perc'}</tt></small>
  457:        </td>
  458:       </tr>
  459:       <tr>
  460:        <td bgcolor="$sidebg" align="left" valign="top">
  461:         <small><b>&nbsp;&nbsp;&nbsp;$lt{'user'}&nbsp;$lt{'load'}:&nbsp;</b></small>
  462:        </td>
  463:        <td bgcolor="$sidebg" align="left" valign="top">
  464:         <small><tt>&nbsp;$userloadpercent $lt{'perc'}</tt></small>
  465:        </td>
  466:       </tr>
  467:      </table>
  468:      <br />
  469:     <small>
  470:      <b>&nbsp;&nbsp;&nbsp;$lt{'sysadm'}:</b><br />
  471:      <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sysadm</tt><br />
  472:      <b>&nbsp;&nbsp;&nbsp;$lt{'servadm'}:</b><br />
  473:      <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$servadm</tt><br />&nbsp;<br />
  474:      &nbsp;&nbsp;&nbsp;$version
  475:     </small>
  476:    </td>
  477: 
  478:    <!-- Row 5 Column 2 -->
  479:    <td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
  480: 
  481:    <!-- Row 5 Column 3 -->
  482:    <td width="100%" valign="bottom" bgcolor="$mainbg">
  483: $domainlogo
  484: </td>
  485: 
  486:    <!-- Row 5 Column 4 -->
  487:    <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
  488:   </tr>
  489:   <tr>
  490: 
  491:    <!-- Row 6 Column 1 -->
  492:    <td bgcolor="$sidebg">&nbsp;</td>
  493: 
  494:    <!-- Row 6 Column 2 -->
  495:    <td align="left" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerleft.gif" alt="" /></td>
  496: 
  497:    <!-- Row 6 Column 3 -->
  498:    <td background="$iconpath/fillbottom.gif"><img src="$iconpath/fillbottom.gif" alt="" /></td>
  499: 
  500:    <!-- Row 6 Column 4 -->
  501:    <td align="right" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerright.gif" alt="" /></td>
  502:   </tr>
  503:  </table>
  504: 
  505: <script>
  506: // the if prevents the script error if the browser can't handle this
  507: if ( document.client.uname ) { document.client.uname.focus(); }
  508: </script>
  509: 
  510: ENDDOCUMENT
  511: }
  512:     $r->print('</body></html>');
  513:     return OK;
  514: } 
  515: 
  516: 1;
  517: __END__

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>