version 1.83, 2008/12/26 21:48:43
|
version 1.84, 2008/12/26 22:24:43
|
Line 1330 sub print_quotas {
|
Line 1330 sub print_quotas {
|
'</label></span> '; |
'</label></span> '; |
} |
} |
$datatable .= '<span class="LC_nobreak">('.&mt('overrides affiliation'). |
$datatable .= '<span class="LC_nobreak">('.&mt('overrides affiliation'). |
')</span</td></tr>'; |
')</span></td></tr>'; |
$$rowtotal += $typecount; |
$$rowtotal += $typecount; |
return $datatable; |
return $datatable; |
} |
} |
Line 4980 sub modify_serverstatuses {
|
Line 4980 sub modify_serverstatuses {
|
my %changes; |
my %changes; |
foreach my $type (@pages) { |
foreach my $type (@pages) { |
foreach my $setting ('namedusers','machines') { |
foreach my $setting ('namedusers','machines') { |
my @current = (); |
my (@current,@new); |
if (ref($currserverstatus{$type}) eq 'HASH') { |
if (ref($currserverstatus{$type}) eq 'HASH') { |
@current = split(/,/,$currserverstatus{$type}{$setting}); |
if ($currserverstatus{$type}{$setting} ne '') { |
|
@current = split(/,/,$currserverstatus{$type}{$setting}); |
|
} |
|
} |
|
if ($newserverstatus{$type}{$setting} ne '') { |
|
@new = split(/,/,$newserverstatus{$type}{$setting}); |
} |
} |
my @new = split(/,/,$newserverstatus{$type}{$setting}); |
|
if (@current > 0) { |
if (@current > 0) { |
if (@new > 0) { |
if (@new > 0) { |
foreach my $item (@current) { |
foreach my $item (@current) { |
Line 4993 sub modify_serverstatuses {
|
Line 4997 sub modify_serverstatuses {
|
last; |
last; |
} |
} |
} |
} |
if (!$changes{$type}{$setting}) { |
foreach my $item (@new) { |
foreach my $item (@new) { |
if (!grep(/^\Q$item\E$/,@current)) { |
if (!grep(/^\Q$item\E$/,@current)) { |
$changes{$type}{$setting} = 1; |
$changes{$type}{$setting} = 1; |
last; |
last; |
|
} |
|
} |
} |
} |
} |
} else { |
} else { |
Line 5016 sub modify_serverstatuses {
|
Line 5018 sub modify_serverstatuses {
|
if ($putresult eq 'ok') { |
if ($putresult eq 'ok') { |
$resulttext .= &mt('Changes made:').'<ul>'; |
$resulttext .= &mt('Changes made:').'<ul>'; |
foreach my $type (@pages) { |
foreach my $type (@pages) { |
if (defined($changes{$type})) { |
if (ref($changes{$type}) eq 'HASH') { |
$resulttext .= '<li>'.$titles->{$type}.'<ul>'; |
$resulttext .= '<li>'.$titles->{$type}.'<ul>'; |
if (defined($changes{$type}{'namedusers'})) { |
if ($changes{$type}{'namedusers'}) { |
if ($newserverstatus{$type}{'namedusers'} eq '') { |
if ($newserverstatus{$type}{'namedusers'} eq '') { |
$resulttext .= '<li>'.&mt("Access terminated for all specific (named) users").'</li>'."\n"; |
$resulttext .= '<li>'.&mt("Access terminated for all specific (named) users").'</li>'."\n"; |
} else { |
} else { |
$resulttext .= '<li>'.&mt("Access available for the following specified users: ").$newserverstatus{$type}{'namedusers'}.'</li>'."\n"; |
$resulttext .= '<li>'.&mt("Access available for the following specified users: ").$newserverstatus{$type}{'namedusers'}.'</li>'."\n"; |
} |
} |
} elsif (defined($changes{$type}{'machines'})) { |
} |
|
if ($changes{$type}{'machines'}) { |
if ($newserverstatus{$type}{'machines'} eq '') { |
if ($newserverstatus{$type}{'machines'} eq '') { |
$resulttext .= '<li>'.&mt("Access terminated for all specific IP addresses").'</li>'."\n"; |
$resulttext .= '<li>'.&mt("Access terminated for all specific IP addresses").'</li>'."\n"; |
} else { |
} else { |