[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

www lon-capa-cvs@mail.lon-capa.org
Wed, 01 Nov 2006 21:27:50 -0000


www		Wed Nov  1 16:27:50 2006 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  Too much email, this does not scale.
  
  Removed system and server administrator from login screen.
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.81 loncom/auth/lonlogin.pm:1.82
--- loncom/auth/lonlogin.pm:1.81	Wed Sep 27 20:59:02 2006
+++ loncom/auth/lonlogin.pm	Wed Nov  1 16:27:50 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.81 2006/09/28 00:59:02 albertel Exp $
+# $Id: lonlogin.pm,v 1.82 2006/11/01 21:27:50 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -150,8 +150,6 @@
     }
     my $role    = $r->dir_config('lonRole');
     my $loadlim = $r->dir_config('lonLoadLim');
-    my $servadm = $r->dir_config('lonAdmEMail');
-    my $sysadm  = $r->dir_config('lonSysEMail');
     my $lonhost = $r->dir_config('lonHostID');
     my $tabdir  = $r->dir_config('lonTabDir');
     my $include = $r->dir_config('lonIncludes');
@@ -254,7 +252,6 @@
 <img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" />
 <h3>This LON-CAPA server is temporarily not available for login</h3>
 <p>Please attempt to login to one of the following servers:</p>$spares
-<p>If the problem persists, please contact <tt>$servadm</tt>.</p>
 </body>
 </html>
 ENDTROUBLE
@@ -264,8 +261,6 @@
 # ----------------------------------------------- Apparently we are in business
 
     my $domainlogo=&Apache::loncommon::domainlogo($domain);
-    $servadm=~s/\,/\<br \/\>/g;
-    $sysadm=~s/\,/\<br \/\>/g;
 
 # --------------------------------------------------- Print login screen header
     $r->print(<<ENDHEADER);
@@ -313,8 +308,6 @@
 		  'log' => 'Log in',
 		  'help' => 'Help',
 		  'serv' => 'Server',
-                  'servadm' => 'Server Administration',
-                  'sysadm' => 'System Administration',
                   'helpdesk' => 'Contact Helpdesk');
 # -------------------------------------------------- Change password field name
     my $now=time;
@@ -462,9 +455,6 @@
 <label><input type="checkbox" name="embedsuppress" /> Suppress rendering of embedded multimedia</label><br />
 <label><input type="checkbox" name="fontenhance" /> Increase font size</label><br />
 <label><input type="checkbox" name="blackwhite" /> Switch to black and white mode</label><br />
-<p>If you have accessibility needs that are not addressed by this interface, 
-please
-contact the system administrator at <tt>$sysadm</tt>.</p><br />
 <input type="checkbox" name="remember" /> Remember these settings for next login<hr />
 ENDACCESSOPTIONS
 } else {
@@ -509,7 +499,7 @@
 ENDLOGIN
     if ($fullgraph) {
         my $helpdeskscript;
-        my $contactblock = &contactdisplay(\%lt,$sysadm,$servadm,$version,$authdomain,\$helpdeskscript);
+        my $contactblock = &contactdisplay(\%lt,$version,$authdomain,\$helpdeskscript);
 	$r->print(<<ENDDOCUMENT);
    </td>
 
@@ -605,23 +595,13 @@
 }
 
 sub contactdisplay {
-    my ($lt,$sysadm,$servadm,$version,$authdomain,$helpdeskscript) = @_;
+    my ($lt,$version,$authdomain,$helpdeskscript) = @_;
     my $contactblock;
-    my $showsysadm = 1;
-    my $showservadm = 1;
     my $showhelpdesk = 0;
     my $requestmail = $Apache::lonnet::perlvar{'lonSupportEMail'};
     if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) {
         $showhelpdesk = 1;
     }
-    if ($showsysadm) {
-        $contactblock .= '<b>&nbsp;&nbsp;&nbsp;'.$$lt{'sysadm'}.':</b><br />'.
-                         '<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$sysadm.'</tt><br />';
-    }
-    if ($showservadm) {
-        $contactblock .= '<b>&nbsp;&nbsp;&nbsp;'.$$lt{'servadm'}.':</b><br />'.
-                         '<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$servadm.'</tt><br />&nbsp;<br />';
-    }
     if ($showhelpdesk) {
         $contactblock .= '<b>&nbsp;&nbsp;&nbsp;<a href="javascript:helpdesk()">'.$$lt{'helpdesk'}.'</a></b><br />';
         my $thisurl = &escape('/adm/login');