Diff for /loncom/cgi/clusterstatus.pl between versions 1.17 and 1.19

version 1.17, 2003/08/05 18:47:21 version 1.19, 2003/08/20 01:34:25
Line 26  my $fromcache; Line 26  my $fromcache;
 my %domaindescription = ();  my %domaindescription = ();
 my %domain_auth_def = ();  my %domain_auth_def = ();
 my %domain_auth_arg_def = ();  my %domain_auth_arg_def = ();
   my %domain_lang_def=();
   my %domain_city=();
   my %domain_longi=();
   my %domain_lati=();
   
 my %hostname=();  my %hostname=();
 my %hostip=();  my %hostip=();
Line 212  sub server { Line 216  sub server {
     print &otherwindow($local,'/server-status','Server Status');      print &otherwindow($local,'/server-status','Server Status');
 }  }
   
   sub announcement {
       my $local=shift;
       print &otherwindow($local,'/announcement.txt','Announcement');
   }
   
 # ========================================================= Produce a green bar  # ========================================================= Produce a green bar
 sub bar {  sub bar {
     my $parm=shift;      my $parm=shift;
Line 233  sub serverstatus { Line 242  sub serverstatus {
 <tr><td bgcolor="#BBDDBB"><font color="#225522" face="arial"><b>  <tr><td bgcolor="#BBDDBB"><font color="#225522" face="arial"><b>
 $local $hostdom{$local}</b> <tt>($hostname{$local}; $hostrole{$local})</tt>  $local $hostdom{$local}</b> <tt>($hostname{$local}; $hostrole{$local})</tt>
 <br />$domaindescription{$hostdom{$local}}  <br />$domaindescription{$hostdom{$local}}
   $domain_city{$hostdom{$local}}
 </font></th></tr><tr><td bgcolor="#DDDDBB"><font color="#225522">  </font></th></tr><tr><td bgcolor="#DDDDBB"><font color="#225522">
 ENDHEADER  ENDHEADER
     &login($local);&server($local);&users($local);&versions($local);      &login($local);&server($local);&users($local);&versions($local);
       &announcement($local);
     &loncron($local);&lond($local);&lonc($local);&runloncron($local);      &loncron($local);&lond($local);&lonc($local);&runloncron($local);
     print "</font></td></tr>";      print "</font></td></tr>";
     if ($trouble) {      if ($trouble) {
Line 641  delete $perlvar{'lonSqlAccess'}; # remov Line 652  delete $perlvar{'lonSqlAccess'}; # remov
        while (<$fh>) {         while (<$fh>) {
            next if (/^(\#|\s*$)/);             next if (/^(\#|\s*$)/);
            chomp;             chomp;
            my ($domain, $domain_description, $def_auth, $def_auth_arg)             my ($domain, $domain_description, $def_auth, $def_auth_arg,
                = split(/:/,$_,4);         $def_lang, $city, $longi, $lati) = split(/:/,$_);
            $domain_auth_def{$domain}=$def_auth;     $domain_auth_def{$domain}=$def_auth;
            $domain_auth_arg_def{$domain}=$def_auth_arg;             $domain_auth_arg_def{$domain}=$def_auth_arg;
            $domaindescription{$domain}=$domain_description;     $domaindescription{$domain}=$domain_description;
      $domain_lang_def{$domain}=$def_lang;
      $domain_city{$domain}=$city;
      $domain_longi{$domain}=$longi;
      $domain_lati{$domain}=$lati;
        }         }
     }      }
 }  }

Removed from v.1.17  
changed lines
  Added in v.1.19


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>