version 1.119, 2009/04/28 21:54:51
|
version 1.122, 2009/05/22 17:01:28
|
Line 264 my $now=time;
|
Line 264 my $now=time;
|
my $js = (<<ENDSCRIPT); |
my $js = (<<ENDSCRIPT); |
|
|
<script type="text/javascript" language="JavaScript"> |
<script type="text/javascript" language="JavaScript"> |
|
// <![CDATA[ |
function send() |
function send() |
{ |
{ |
this.document.server.elements.uname.value |
this.document.server.elements.uname.value |
Line 289 this.document.client.elements.upass$now.
|
Line 290 this.document.client.elements.upass$now.
|
this.document.server.submit(); |
this.document.server.submit(); |
return false; |
return false; |
} |
} |
|
// ]]> |
</script> |
</script> |
|
|
ENDSCRIPT |
ENDSCRIPT |
Line 339 $r->print(<$jsh>);
|
Line 341 $r->print(<$jsh>);
|
$r->print( |
$r->print( |
'<div class="LC_loginpage_container">'); |
'<div class="LC_loginpage_container">'); |
|
|
|
# |
|
# If the loadbalancing yielded just http:// because perhaps there's no loadbalancing? |
|
# then just us a relative link to authenticate: |
|
# |
|
|
$r->print(<<ENDSERVERFORM); |
$r->print(<<ENDSERVERFORM); |
<form name="server" action="$otherserver/adm/authenticate" method="post" target="_top"> |
<form name="server" action="$otherserver/adm/authenticate" method="post" target="_top"> |
<input type="hidden" name="logtoken" value="$logtoken" /> |
<input type="hidden" name="logtoken" value="$logtoken" /> |
Line 376 my $contactblock = &contactdisplay(\%lt,
|
Line 383 my $contactblock = &contactdisplay(\%lt,
|
$version,$authdomain,\$helpdeskscript); |
$version,$authdomain,\$helpdeskscript); |
|
|
my $loginform=(<<LFORM); |
my $loginform=(<<LFORM); |
<form name="client" onsubmit="return(send())"> |
<form name="client" action="" onsubmit="return(send())"> |
<input type="hidden" name="lextkey" value="$lextkey" /> |
<input type="hidden" name="lextkey" value="$lextkey" /> |
<input type="hidden" name="uextkey" value="$uextkey" /> |
<input type="hidden" name="uextkey" value="$uextkey" /> |
<b><label for="uname">$lt{'un'}</label>:</b><br /> |
<b><label for="uname">$lt{'un'}</label>:</b><br /> |
Line 472 $r->print(<<ENDDOCUMENT);
|
Line 479 $r->print(<<ENDDOCUMENT);
|
</div> |
</div> |
|
|
<script type="text/javascript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
// the if prevents the script error if the browser can not handle this |
// the if prevents the script error if the browser can not handle this |
if ( document.client.uname ) { document.client.uname.focus(); } |
if ( document.client.uname ) { document.client.uname.focus(); } |
|
// ]]> |
</script> |
</script> |
$helpdeskscript |
$helpdeskscript |
|
|
Line 500 sub contactdisplay {
|
Line 509 sub contactdisplay {
|
my $thisurl = &escape('/adm/login'); |
my $thisurl = &escape('/adm/login'); |
$$helpdeskscript = <<"ENDSCRIPT"; |
$$helpdeskscript = <<"ENDSCRIPT"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
function helpdesk() { |
function helpdesk() { |
var codedom = document.client.udom.value; |
var codedom = document.client.udom.value; |
if (codedom == '') { |
if (codedom == '') { |
Line 509 function helpdesk() {
|
Line 519 function helpdesk() {
|
document.location.href = "/adm/helpdesk?"+querystr; |
document.location.href = "/adm/helpdesk?"+querystr; |
return; |
return; |
} |
} |
|
// ]]> |
</script> |
</script> |
ENDSCRIPT |
ENDSCRIPT |
} |
} |