[LON-CAPA-cvs] cvs: loncom /auth londes.js lonlogin.pm
bisitz
bisitz@source.lon-capa.org
Fri, 22 May 2009 17:01:28 -0000
bisitz Fri May 22 17:01:28 2009 EDT
Modified files:
/loncom/auth londes.js lonlogin.pm
Log:
XHTML
Index: loncom/auth/londes.js
diff -u loncom/auth/londes.js:1.8 loncom/auth/londes.js:1.9
--- loncom/auth/londes.js:1.8 Tue Aug 3 15:03:35 2004
+++ loncom/auth/londes.js Fri May 22 17:01:28 2009
@@ -1,9 +1,10 @@
<script type="text/javascript" language="JavaScript">
+// <![CDATA[
// The LearningOnline Network with CAPA
// Encryption Routines according to Data Encryption Standard DES
// Federal Information Processing Standards Publication 46-2 (1993 Dec 30)
//
-// $Id: londes.js,v 1.8 2004/08/03 15:03:35 matthew Exp $
+// $Id: londes.js,v 1.9 2009/05/22 17:01:28 bisitz Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -375,4 +376,5 @@
return(hexstring(b3)+hexstring(b2)+hexstring(b1)+hexstring(b0));
}
+// ]]>
</script>
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.121 loncom/auth/lonlogin.pm:1.122
--- loncom/auth/lonlogin.pm:1.121 Sat May 16 01:19:29 2009
+++ loncom/auth/lonlogin.pm Fri May 22 17:01:28 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.121 2009/05/16 01:19:29 raeburn Exp $
+# $Id: lonlogin.pm,v 1.122 2009/05/22 17:01:28 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -264,6 +264,7 @@
my $js = (<<ENDSCRIPT);
<script type="text/javascript" language="JavaScript">
+// <![CDATA[
function send()
{
this.document.server.elements.uname.value
@@ -289,6 +290,7 @@
this.document.server.submit();
return false;
}
+// ]]>
</script>
ENDSCRIPT
@@ -381,7 +383,7 @@
$version,$authdomain,\$helpdeskscript);
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="uextkey" value="$uextkey" />
<b><label for="uname">$lt{'un'}</label>:</b><br />
@@ -477,8 +479,10 @@
</div>
<script type="text/javascript">
+// <![CDATA[
// the if prevents the script error if the browser can not handle this
if ( document.client.uname ) { document.client.uname.focus(); }
+// ]]>
</script>
$helpdeskscript
@@ -505,6 +509,7 @@
my $thisurl = &escape('/adm/login');
$$helpdeskscript = <<"ENDSCRIPT";
<script type="text/javascript">
+// <![CDATA[
function helpdesk() {
var codedom = document.client.udom.value;
if (codedom == '') {
@@ -514,6 +519,7 @@
document.location.href = "/adm/helpdesk?"+querystr;
return;
}
+// ]]>
</script>
ENDSCRIPT
}