Diff for /loncom/interface/domainprefs.pm between versions 1.76.2.2 and 1.77

version 1.76.2.2, 2008/12/17 22:13:22 version 1.77, 2008/12/11 16:37:42
Line 107  sub handler { Line 107  sub handler {
         'quotas' =>           'quotas' => 
                     { text => 'User blogs, home pages and portfolios',                      { text => 'User blogs, home pages and portfolios',
                       help => 'Domain_Configuration_Quotas',                        help => 'Domain_Configuration_Quotas',
                       header => [{col1 => 'User type',                        header => [{col1 => 'User affiliation',
                                   col2 => 'Available tools',                                    col2 => 'Available tools',
                                   col3 => 'Portfolio quota',}],                                    col3 => 'Portfolio quota',}],
                     },                      },
Line 175  sub handler { Line 175  sub handler {
                                }],                                 }],
                   },                    },
         'serverstatuses' =>          'serverstatuses' =>
                  {text   => 'Access to Server Status Pages',                   {text   => 'Access to server status pages',
                   help   => 'Domain_Configuration_Server_Status',                    help   => 'Domain_Configuration_Server_Status',
                   header => [{col1 => 'Status Page',                    header => [{col1 => 'Status Page',
                               col2 => 'Other named users',                                col2 => 'Other named users',
Line 817  sub login_choices { Line 817  sub login_choices {
             bgs => "Background colors",              bgs => "Background colors",
             links => "Link colors",              links => "Link colors",
             font => "Font color",              font => "Font color",
             pgbg => "Page",              pgbg => "Header",
             mainbg => "Main panel",              mainbg => "Page",
             sidebg => "Side panel",              sidebg => "Login box",
             link => "Link",              link => "Link",
             alink => "Active link",              alink => "Active link",
             vlink => "Visited link",              vlink => "Visited link",
Line 1246  sub print_quotas { Line 1246  sub print_quotas {
     if (ref($types) eq 'ARRAY') {      if (ref($types) eq 'ARRAY') {
         foreach my $type (@{$types}) {          foreach my $type (@{$types}) {
             my $currdefquota;              my $currdefquota;
             if (ref($settings) eq 'HASH') {              if (ref($settings->{defaultquota}) eq 'HASH') {
                 if (ref($settings->{defaultquota}) eq 'HASH') {                  $currdefquota = $settings->{defaultquota}->{$type}; 
                     $currdefquota = $settings->{defaultquota}->{$type};               } else {
                 } else {                  $currdefquota = $settings->{$type};
                     $currdefquota = $settings->{$type};  
                 }  
             }              }
             if (defined($usertypes->{$type})) {              if (defined($usertypes->{$type})) {
                 $typecount ++;                  $typecount ++;
Line 1261  sub print_quotas { Line 1259  sub print_quotas {
                               '<td class="LC_left_item">';                                '<td class="LC_left_item">';
                 foreach my $item (@usertools) {                  foreach my $item (@usertools) {
                     my $checked = 'checked="checked" ';                      my $checked = 'checked="checked" ';
                     if (ref($settings) eq 'HASH') {                      if (ref($settings->{$item}) eq 'HASH') {
                         if (ref($settings->{$item}) eq 'HASH') {                          if ($settings->{$item}->{$type} == 0) {
                             if ($settings->{$item}->{$type} == 0) {                              $checked = '';
                                 $checked = '';  
                             }  
                         }                          }
                     }                      }
                     $datatable .= '<span class="LC_nobreak"><label>'.                      $datatable .= '<span class="LC_nobreak"><label>'.
Line 1295  sub print_quotas { Line 1291  sub print_quotas {
                   '<td class="LC_left_item">';                    '<td class="LC_left_item">';
     foreach my $item (@usertools) {      foreach my $item (@usertools) {
         my $checked = 'checked="checked" ';          my $checked = 'checked="checked" ';
         if (ref($settings) eq 'HASH') {          if (ref($settings->{$item}) eq 'HASH') {
             if (ref($settings->{$item}) eq 'HASH') {              if ($settings->{$item}->{'default'} == 0) {
                 if ($settings->{$item}->{'default'} == 0) {                  $checked = '';
                     $checked = '';  
                 }  
             }              }
         }          }
         $datatable .= '<span class="LC_nobreak"><label>'.          $datatable .= '<span class="LC_nobreak"><label>'.
Line 1317  sub print_quotas { Line 1311  sub print_quotas {
                   '<td class="LC_left_item" colspan="2"><br />';                    '<td class="LC_left_item" colspan="2"><br />';
     foreach my $item (@usertools) {      foreach my $item (@usertools) {
         my $checked = 'checked="checked" ';          my $checked = 'checked="checked" ';
         if (ref($settings) eq 'HASH') {          if (ref($settings->{$item}) eq 'HASH') {
             if (ref($settings->{$item}) eq 'HASH') {              if ($settings->{$item}->{'_LC_adv'} == 0) {
                 if ($settings->{$item}->{'_LC_adv'} == 0) {                  $checked = '';
                     $checked = '';  
                 }  
             }              }
         }          }
         $datatable .= '<span class="LC_nobreak"><label>'.          $datatable .= '<span class="LC_nobreak"><label>'.
Line 1329  sub print_quotas { Line 1321  sub print_quotas {
                       '" value="_LC_adv" '.$checked.'/>'.$titles{$item}.                        '" value="_LC_adv" '.$checked.'/>'.$titles{$item}.
                       '</label></span>&nbsp; ';                        '</label></span>&nbsp; ';
     }      }
     $datatable .= '('.&mt('overrides affiliation').')</td></tr>';      $datatable .= '<span class="LC_nobreak">('.&mt('overrides affiliation').
                     ')</span</td></tr>';
     $$rowtotal += $typecount;      $$rowtotal += $typecount;
     return $datatable;      return $datatable;
 }  }

Removed from v.1.76.2.2  
changed lines
  Added in v.1.77


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