version 1.16, 2003/08/05 18:33:08
|
version 1.18, 2003/08/13 21:41:47
|
Line 212 sub server {
|
Line 212 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 236 $local $hostdom{$local}</b> <tt>($hostna
|
Line 241 $local $hostdom{$local}</b> <tt>($hostna
|
</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 303 sub resetvars {
|
Line 309 sub resetvars {
|
$stat_total=0; |
$stat_total=0; |
$stat_notyet=0; |
$stat_notyet=0; |
$stat_fromcache=0; |
$stat_fromcache=0; |
|
$concount=0; |
undef %host; |
undef %host; |
%host=(); |
%host=(); |
} |
} |
Line 431 sub reports {
|
Line 437 sub reports {
|
"<table cellspacing='3' cellpadding='3' border='0' bgcolor='#225522'>". |
"<table cellspacing='3' cellpadding='3' border='0' bgcolor='#225522'>". |
"<tr><td bgcolor='#225522'> </td>"; |
"<tr><td bgcolor='#225522'> </td>"; |
foreach my $remote (sort keys %hostname) { |
foreach my $remote (sort keys %hostname) { |
print '<th bgcolor="#DDDDBB">'.$remote.'</th>'; |
print '<td bgcolor="#DDDDBB">'.$remote.'</td>'; |
} |
} |
print "</tr>\n"; |
print "</tr>\n"; |
# connection matrix |
# connection matrix |
foreach my $local (sort keys %hostname) { |
foreach my $local (sort keys %hostname) { |
print '<tr><th bgcolor="#DDDDBB">'.$local.'</th>'; |
print '<tr><td bgcolor="#DDDDBB">'.$local.'</td>'; |
foreach my $remote (sort keys %hostname) { |
foreach my $remote (sort keys %hostname) { |
if ($connectionstatus{$local.'_TO_'.$remote} eq 'not_yet') { |
if ($connectionstatus{$local.'_TO_'.$remote} eq 'not_yet') { |
my $cellcolor='#FFFFFF'; |
my $cellcolor='#FFFFFF'; |