File:  [LON-CAPA] / loncom / auth / lonlogin.pm
Revision 1.55.4.1: download - view: text, annotated - select for diffs
Tue Feb 10 19:23:11 2004 UTC (20 years, 3 months ago) by albertel
Branches: version_1_1_X
CVS tags: version_1_1_3, version_1_1_2
Diff to branchpoint 1.55: preferred, unified
- backporting support for CSTR on multidomained machines into 1.1.X

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

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