Annotation of loncom/auth/lonlogin.pm, revision 1.55.2.2
1.1 albertel 1: # The LearningOnline Network
2: # Login Screen
1.11 www 3: #
1.55.2.2! albertel 4: # $Id: lonlogin.pm,v 1.55.2.1 2004/01/27 23:40:31 albertel Exp $
1.11 www 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: #
1.14 albertel 28:
1.1 albertel 29: package Apache::lonlogin;
30:
31: use strict;
32: use Apache::Constants qw(:common);
1.55 www 33: use CGI::Cookie();
1.1 albertel 34: use Apache::File ();
35: use Apache::lonnet();
1.12 albertel 36: use Apache::loncommon();
1.49 www 37: use Apache::lonauth();
1.50 www 38: use Apache::lonlocal;
1.1 albertel 39:
40: sub handler {
41: my $r = shift;
1.53 www 42: &Apache::loncommon::no_cache($r);
43: &Apache::lonlocal::get_language_handle($r);
1.54 www 44: &Apache::loncommon::content_type($r,'text/html');
1.1 albertel 45: $r->send_http_header;
46: return OK if $r->header_only;
47:
1.49 www 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: }
1.55 www 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
1.16 www 86:
87: &Apache::loncommon::get_unprocessed_cgi
1.39 www 88: ($ENV{'QUERY_STRING'}.'&'.$ENV{'request.querystring'},
1.43 www 89: ['interface','username','domain','firsturl','localpath','localres']);
1.39 www 90:
1.50 www 91:
1.32 www 92: # ----------------------------------------------------------- Process Interface
1.18 www 93: $ENV{'form.interface'}=~s/\W//g;
1.16 www 94:
1.32 www 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:
1.16 www 104: my $fullgraph=($ENV{'form.interface'} ne 'textual');
1.40 albertel 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.
1.26 www 110: $r->dir_config('lonIconsURL');
1.1 albertel 111: my $domain = $r->dir_config('lonDefDomain');
1.55.2.1 albertel 112: my $testdomain=(split(/\./,$ENV{'HTTP_HOST'}))[0];
113: foreach my $posdom (values(%Apache::lonnet::hostdom)) {
1.55.2.2! albertel 114: if (lc($posdom) eq lc($testdomain)) { $domain=$testdomain; }
1.55.2.1 albertel 115: }
1.46 www 116: if (($ENV{'form.domain'}) &&
117: ($Apache::lonnet::domaindescription{$ENV{'form.domain'}})) {
118: $domain=$ENV{'form.domain'};
119: }
1.1 albertel 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');
1.6 www 126: my $include = $r->dir_config('lonIncludes');
1.37 www 127: my $expire = $r->dir_config('lonExpire');
1.44 www 128: my $version = $r->dir_config('lonVersion');
1.1 albertel 129:
1.30 www 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
1.1 albertel 136: my $loadavg;
1.41 albertel 137: {
138: my $loadfile=Apache::File->new('/proc/loadavg');
139: $loadavg=<$loadfile>;
140: }
1.1 albertel 141: $loadavg =~ s/\s.*//g;
142: my $loadpercent=100*$loadavg/$loadlim;
1.41 albertel 143: my $userloadpercent=&Apache::lonnet::userload();
1.1 albertel 144:
1.30 www 145: # ------------------------------------------------------- Do the load balancing
1.10 www 146: my $otherserver='http://'.$ENV{'SERVER_NAME'};
1.31 www 147: my $firsturl=
148: ($ENV{'request.firsturl'}?$ENV{'request.firsturl'}:$ENV{'form.firsturl'});
1.1 albertel 149: # ---------------------------------------- Are we access server and overloaded?
1.41 albertel 150: if (($role eq 'access') &&
151: (($userloadpercent>100.0)||($loadpercent>100.0))) {
1.47 albertel 152: my $unloaded=Apache::lonnet::spareserver($loadpercent,$userloadpercent);
153: if ($unloaded) { $otherserver=$unloaded; }
1.1 albertel 154: }
1.6 www 155:
1.45 www 156: # ----------------------------------------------------------- Get announcements
157: my $announcements=&Apache::lonnet::getannounce();
1.6 www 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);
1.15 www 173: if ($lextkey>2147483647) { $lextkey-=4294967296; }
174:
1.6 www 175: my $uextkey=hex($ukey);
1.15 www 176: if ($uextkey>2147483647) { $uextkey-=4294967296; }
177:
1.31 www 178: # -------------------------------------------------------- Store away log token
1.6 www 179: my $logtoken=Apache::lonnet::reply(
1.7 www 180: 'tmpput:'.$ukey.$lkey.'&'.$firsturl,
1.6 www 181: $lonhost);
1.31 www 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:
1.48 albertel 213: my $domainlogo=&Apache::loncommon::domainlogo($domain);
1.38 www 214: $servadm=~s/\,/\<br \/\>/g;
215: $sysadm=~s/\,/\<br \/\>/g;
216:
1.6 www 217: # --------------------------------------------------- Print login screen header
218: $r->print(<<ENDHEADER);
1.1 albertel 219: <html>
220: <head>
1.37 www 221: <meta HTTP-EQUIV="Refresh" CONTENT="$expire; url=/adm/roles" />
1.2 www 222: <title>The LearningOnline Network with CAPA Login</title>
1.1 albertel 223: </head>
1.6 www 224: ENDHEADER
225: # ---------------------------------------------------- Serve out DES JavaScript
226: {
227: my $jsh=Apache::File->new($include."/londes.js");
228: $r->print(<$jsh>);
229: }
1.21 www 230:
231: # ----------------------------------------------------------- Front page design
1.35 www 232: my $pgbg=
1.46 www 233: ($fullgraph?&Apache::loncommon::designparm('login.pgbg',$domain):'#FFFFFF');
1.35 www 234: my $font=
1.46 www 235: ($fullgraph?&Apache::loncommon::designparm('login.font',$domain):'#000000');
1.35 www 236: my $link=
1.46 www 237: ($fullgraph?&Apache::loncommon::designparm('login.link',$domain):'#0000FF');
1.35 www 238: my $vlink=
1.46 www 239: ($fullgraph?&Apache::loncommon::designparm('login.vlink',$domain):'#0000FF');
240: my $alink=&Apache::loncommon::designparm('login.alink',$domain);
1.35 www 241: my $mainbg=
1.46 www 242: ($fullgraph?&Apache::loncommon::designparm('login.mainbg',$domain):'#FFFFFF');
1.35 www 243: my $sidebg=
1.46 www 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);
1.21 www 247:
1.51 www 248: # ----------------------------------------------------------------------- Texts
249:
250: my %lt=&Apache::lonlocal::texthash(
251: 'un' => 'Username',
252: 'pw' => 'Password',
253: 'dom' => 'Domain',
254: 'perc' => 'percent',
1.52 www 255: 'load' => 'Load',
256: 'userload' => 'User Load',
257: 'about' => 'aboutlon.gif',
258: 'access' => 'accessbutton.gif',
259: 'auth' => 'userauthentication.gif',
1.51 www 260: 'log' => 'Log in',
261: 'help' => 'Help',
262: 'serv' => 'Server',
263: 'servadm' => 'Server Administration',
264: 'sysadm' => 'System Administration');
265:
1.21 www 266:
1.6 www 267: # ---------------------------------------------------------- Serve rest of page
1.16 www 268: $r->print(<<ENDSCRIPT);
1.6 www 269:
1.21 www 270: <body bgcolor="$pgbg" text="$font" link="$link" vlink="$vlink" alink="$alink"
1.27 albertel 271: topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
1.6 www 272:
1.14 albertel 273: <script language="JavaScript">
274: function send()
275: {
1.6 www 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:
1.33 www 282: this.document.server.elements.imagesuppress.value
1.36 www 283: =this.document.client.elements.imagesuppress.checked;
1.33 www 284:
285: this.document.server.elements.embedsuppress.value
1.36 www 286: =this.document.client.elements.embedsuppress.checked;
1.33 www 287:
1.34 www 288: this.document.server.elements.appletsuppress.value
1.36 www 289: =this.document.client.elements.appletsuppress.checked;
1.34 www 290:
1.33 www 291: this.document.server.elements.fontenhance.value
1.36 www 292: =this.document.client.elements.fontenhance.checked;
1.33 www 293:
294: this.document.server.elements.blackwhite.value
1.36 www 295: =this.document.client.elements.blackwhite.checked;
1.33 www 296:
1.35 www 297: this.document.server.elements.remember.value
1.36 www 298: =this.document.client.elements.remember.checked;
1.35 www 299:
1.6 www 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();
1.19 bowersj2 308: return false;
1.6 www 309: }
1.14 albertel 310: </script>
1.16 www 311: ENDSCRIPT
1.6 www 312:
1.16 www 313: if ($fullgraph) {
314: $r->print(
315: '<table width="100%" cellpadding=0 cellspacing=0 border=0>');
316: }
1.6 www 317:
1.16 www 318: $r->print(<<ENDSERVERFORM);
1.14 albertel 319: <form name="server" action="$otherserver/adm/authenticate" method="post" target="_top">
1.33 www 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="" />
1.34 www 327: <input type="hidden" name="appletsuppress" value="" />
1.33 www 328: <input type="hidden" name="embedsuppress" value="" />
329: <input type="hidden" name="fontenhance" value="" />
330: <input type="hidden" name="blackwhite" value="" />
1.35 www 331: <input type="hidden" name="remember" value="" />
1.43 www 332: <input type="hidden" name="localpath" value="$ENV{'form.localpath'}" />
333: <input type="hidden" name="localres" value="$ENV{'form.localres'}" />
1.14 albertel 334: </form>
1.16 www 335: ENDSERVERFORM
336: if ($fullgraph) { $r->print(<<ENDTOP);
1.14 albertel 337: <!-- The LON-CAPA Header -->
338: <tr>
339:
340: <!-- Row 1 Columns 2-4 -->
1.29 www 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>
1.14 albertel 342: </tr>
343:
344: <!-- The gray bar that starts the two table frames -->
345: <tr>
346:
347: <!-- Row 2 Column 1 -->
1.21 www 348: <td width=182 height=27 bgcolor="$sidebg"> </td>
1.14 albertel 349:
350: <!-- Row 2 Column 2 -->
1.19 bowersj2 351: <td width=27 height=27 align="left" background="$iconpath/filltop.gif"><img src="$iconpath/upperleft.gif" border=0 alt="" /></td>
1.14 albertel 352:
353: <!-- Row 2 Column 3 -->
1.19 bowersj2 354: <td height=27 background="$iconpath/filltop.gif"><img src="$iconpath/filltop.gif" alt="" /></td>
1.14 albertel 355:
356: <!-- Row 2 Column 4 -->
1.19 bowersj2 357: <td width=27 height=27 align="right" background="$iconpath/filltop.gif"><img src="$iconpath/upperright.gif" border=0 alt="" /></td>
1.14 albertel 358: </tr>
359: <tr>
360:
361: <!-- A cell that will hold the 'access' and 'about' buttons -->
362: <!-- Row 3 Column 1 -->
1.21 www 363: <td valign="top" height=60 align="center" bgcolor="$sidebg">
1.52 www 364: <a href="/adm/login?interface=textual"><img src="$iconpath/$lt{'access'}" border=0 alt="Accessibility Options" /></a>
1.14 albertel 365: <br />
1.52 www 366: <a href="/adm/about.html"><img src="$iconpath/$lt{'about'}" border=0 alt="About LON-CAPA" /></a>
1.14 albertel 367: </td>
368:
369: <!-- The shaded space between the two main columns -->
370: <!-- Row 3 Column 2 -->
1.19 bowersj2 371: <td width=27 height=60 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
1.14 albertel 372:
373: <!-- The right main column holding the large LON-CAPA logo-->
374: <!-- Rows 3-4 Column 3 -->
1.45 www 375: <td align="center" valign="top" width="100%" height="100%" bgcolor="$mainbg">
1.14 albertel 376: <center>
1.21 www 377: <img src="$logo" alt="" />
1.14 albertel 378: </center>
379: </td>
380:
381: <!-- Row 3 Column 4 -->
1.19 bowersj2 382: <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
1.14 albertel 383: </tr>
384: <tr>
385:
386: <!-- The entry form -->
387: <!-- Row 4 Column 1 -->
1.21 www 388: <td align="center" valign="middle" bgcolor="$sidebg">
1.16 www 389: ENDTOP
1.32 www 390: } else {
1.45 www 391: $r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1><h2>Text-based Interface Login</h2>'.$announcements);
1.33 www 392: }
393: $r->print('<form name="client" onsubmit="return(send())">');
394: unless ($fullgraph) {
395: $r->print(<<ENDACCESSOPTIONS);
1.35 www 396: <h3>Select Accessibility Options</h3>
1.33 www 397: <input type="checkbox" name="imagesuppress" /> Suppress rendering of images<br />
1.34 www 398: <input type="checkbox" name="appletsuppress" /> Suppress Java applets<br />
1.33 www 399: <input type="checkbox" name="embedsuppress" /> Suppress rendering of embedded multimedia<br />
400: <input type="checkbox" name="fontenhance" /> Increase font size<br />
1.35 www 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 />
1.33 www 406: ENDACCESSOPTIONS
407: } else {
408: $r->print(<<ENDNOOPT);
409: <input type="hidden" name="imagesuppress" value="" />
410: <input type="hidden" name="embedsuppress" value="" />
1.34 www 411: <input type="hidden" name="appletsuppress" value="" />
1.33 www 412: <input type="hidden" name="fontenhance" value="" />
413: <input type="hidden" name="blackwhite" value="" />
1.35 www 414: <input type="hidden" name="remember" value="" />
1.33 www 415: ENDNOOPT
1.16 www 416: }
417: $r->print(<<ENDLOGIN);
1.14 albertel 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>
1.52 www 423: <tr><td bgcolor="$sidebg" colspan=2><img src="$iconpath/$lt{'auth'}" alt="User Authentication" /></td></tr>
1.14 albertel 424: <tr>
1.51 www 425: <td bgcolor="$mainbg"><br /><font size=-1><b> $lt{'un'}:</b></font></td>
1.30 www 426: <td bgcolor="$mainbg"><br /><input type="text" name="uname" size="10" value="$authusername" /></td>
1.14 albertel 427: </tr>
428: <tr>
1.51 www 429: <td bgcolor="$mainbg"><font size=-1><b> $lt{'pw'}:</b></font></td>
1.21 www 430: <td bgcolor="$mainbg"><input type="password" name="upass" size="10" /></td>
1.14 albertel 431: </tr>
432: <tr>
1.51 www 433: <td bgcolor="$mainbg"><font size=-1><b> $lt{'dom'}:</b></font></td>
1.30 www 434: <td bgcolor="$mainbg"><input type="text" name="udom" size="10" value="$authdomain" /></td>
1.14 albertel 435: </tr>
436: <tr>
1.51 www 437: <td bgcolor="$mainbg"> <a href="/adm/loginproblems.html">$lt{'help'}</a></td>
1.28 www 438: <td bgcolor="$mainbg" valign="bottom" align="center">
1.14 albertel 439: <br />
1.51 www 440: <input type="submit" value="$lt{'log'}" />
1.14 albertel 441: </td>
442: </tr>
443: </table>
444: <!-- End sub-table -->
445: </form>
1.16 www 446: ENDLOGIN
447: if ($fullgraph) {
448: $r->print(<<ENDDOCUMENT);
1.14 albertel 449: </td>
450:
451: <!-- Row 4 Column 2 -->
1.19 bowersj2 452: <td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
1.45 www 453:
454: <!-- Row 4 Column 3 -->
455: <td bgcolor="$mainbg">$announcements</td>
1.14 albertel 456:
457: <!-- Row 4 Column 4 -->
1.19 bowersj2 458: <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
1.14 albertel 459: </tr>
460: <tr>
461:
462: <!-- Row 5 Column 1 -->
1.21 www 463: <td bgcolor="$sidebg" valign="middle" align="left">
1.14 albertel 464: <br />
465: <table border=0 cellspacing=0 cellpadding=0>
466: <tr>
1.21 www 467: <td bgcolor="$sidebg" align="left" valign="top">
1.51 www 468: <small><b> $lt{'dom'}: </b></small>
1.14 albertel 469: </td>
1.21 www 470: <td bgcolor="$sidebg" align="left" valign="top">
1.14 albertel 471: <small><tt> $domain</tt></small>
472: </td>
473: </tr>
474: <tr>
1.21 www 475: <td bgcolor="$sidebg" align="left" valign="top">
1.51 www 476: <small><b> $lt{'serv'}: </b></small>
1.14 albertel 477: </td>
1.21 www 478: <td bgcolor="$sidebg" align="left" valign="top">
1.14 albertel 479: <small><tt> $lonhost ($role)</tt></small>
480: </td>
481: </tr>
482: <tr>
1.21 www 483: <td bgcolor="$sidebg" align="left" valign="top">
1.52 www 484: <small><b> $lt{'load'}: </b></small>
1.14 albertel 485: </td>
1.21 www 486: <td bgcolor="$sidebg" align="left" valign="top">
1.51 www 487: <small><tt> $loadpercent $lt{'perc'}</tt></small>
1.42 albertel 488: </td>
489: </tr>
490: <tr>
491: <td bgcolor="$sidebg" align="left" valign="top">
1.52 www 492: <small><b> $lt{'userload'}: </b></small>
1.42 albertel 493: </td>
494: <td bgcolor="$sidebg" align="left" valign="top">
1.51 www 495: <small><tt> $userloadpercent $lt{'perc'}</tt></small>
1.14 albertel 496: </td>
497: </tr>
498: </table>
499: <br />
500: <small>
1.51 www 501: <b> $lt{'sysadm'}:</b><br />
1.14 albertel 502: <tt> $sysadm</tt><br />
1.51 www 503: <b> $lt{'servadm'}:</b><br />
1.44 www 504: <tt> $servadm</tt><br /> <br />
505: $version
1.14 albertel 506: </small>
507: </td>
508:
509: <!-- Row 5 Column 2 -->
1.19 bowersj2 510: <td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
1.14 albertel 511:
512: <!-- Row 5 Column 3 -->
1.21 www 513: <td width="100%" valign="bottom" bgcolor="$mainbg">
1.20 www 514: $domainlogo
515: </td>
1.14 albertel 516:
517: <!-- Row 5 Column 4 -->
1.19 bowersj2 518: <td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td>
1.14 albertel 519: </tr>
520: <tr>
521:
522: <!-- Row 6 Column 1 -->
1.21 www 523: <td bgcolor="$sidebg"> </td>
1.14 albertel 524:
525: <!-- Row 6 Column 2 -->
1.19 bowersj2 526: <td align="left" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerleft.gif" alt="" /></td>
1.14 albertel 527:
528: <!-- Row 6 Column 3 -->
1.19 bowersj2 529: <td background="$iconpath/fillbottom.gif"><img src="$iconpath/fillbottom.gif" alt="" /></td>
1.14 albertel 530:
531: <!-- Row 6 Column 4 -->
1.19 bowersj2 532: <td align="right" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerright.gif" alt="" /></td>
1.14 albertel 533: </tr>
1.1 albertel 534: </table>
1.25 bowersj2 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>
1.14 albertel 540:
1.1 albertel 541: ENDDOCUMENT
1.16 www 542: }
543: $r->print('</body></html>');
1.1 albertel 544: return OK;
545: }
546:
547: 1;
548: __END__
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>