');
+ if ($saml_landing) {
+ $ssoauthstyle = 'inline-block';
+ $stdauthformstyle = 'none';
+ $logintype = $samlssotext;
+ my $ssologin = '/adm/sso';
+ if ($samlssourl ne '') {
+ $ssologin = $samlssourl;
+ }
+ my $ssohref;
+ if ($samlssoimg ne '') {
+ $ssohref = '
';
+ } else {
+ $ssohref = '
'.$samlssotext.'';
+ }
+ if ($env{'form.firsturl'}) {
+ $ssologin .= '?origurl='.&HTML::Entities::encode($env{'form.firsturl'},'<>&"');
+ }
+ if (($env{'form.saml'} eq 'no') ||
+ (($env{'form.username'} ne '') && ($env{'form.domain'} ne ''))) {
+ $ssoauthstyle = 'none';
+ $stdauthformstyle = 'inline-block';
+ $logintype = $samlnonsso;
+ }
+ $r->print(<
+Log-in type:
+$logintype
+$lt{'change'}
+
+
+
+$ssohref
+$noscript_warning
+
+
+$loginhelp
+$contactblock
+$coursecatalog
+
+
+ENDSAML
+ }
+
+ $r->print(<
$logintitle
$loginform
@@ -742,8 +847,8 @@ HEADER
-