Diff for /loncom/interface/domainprefs.pm between versions 1.280 and 1.281

version 1.280, 2016/09/16 23:42:58 version 1.281, 2016/09/21 01:38:50
Line 4083  sub rules_by_location { Line 4083  sub rules_by_location {
 sub print_ssl {  sub print_ssl {
     my ($position,$dom,$settings,$rowtotal) = @_;      my ($position,$dom,$settings,$rowtotal) = @_;
     my ($css_class,$datatable);      my ($css_class,$datatable);
     my $lonhost = '';  
     my $itemcount = 1;      my $itemcount = 1;
     if ($position eq 'top') {      if ($position eq 'top') {
         my %domservers = &Apache::lonnet::get_servers($dom);          my $primary_id = &Apache::lonnet::domain($dom,'primary');
           my $intdom = &Apache::lonnet::internet_dom($primary_id);
           my $same_institution;
           if ($intdom ne '') {
               my $internet_names = &Apache::lonnet::get_internet_names($Apache::lonnet::perlvar{'lonHostID'});
               if (ref($internet_names) eq 'ARRAY') {
                   if (grep(/^\Q$intdom\E$/,@{$internet_names})) {
                       $same_institution = 1;
                   }
               }
           }
         $css_class = $itemcount%2?' class="LC_odd_row"':'';          $css_class = $itemcount%2?' class="LC_odd_row"':'';
         $datatable = '<tr'.$css_class.'><td colspan="2">'.          $datatable = '<tr'.$css_class.'><td colspan="2">';
                      &LONCAPA::SSL::print_certstatus(\%domservers,'web','domprefs').          if ($same_institution) {
                      '</td></tr>';              my %domservers = &Apache::lonnet::get_servers($dom);
               $datatable .= &LONCAPA::SSL::print_certstatus(\%domservers,'web','domprefs');
           } else {
               $datatable .= &mt("You need to be logged into one of your own domain's servers to display information about the status of LON-CAPA SSL certificates.");
           }
           $datatable .= '</td></tr>';
         $itemcount ++;          $itemcount ++;
     } else {      } else {
         my %titles = &ssl_titles();          my %titles = &ssl_titles();

Removed from v.1.280  
changed lines
  Added in v.1.281


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