foreach my $server ( sort {$my_server_hash {$a} cmp $my_server_hash {$b}
&& $my_server_hash{$a}{tag} <=> $my_server_hash{$b}{tag}
} keys %my_server_hash)
{ my $member = $my_server_hash{$server}{ADMINS};
$servercount++;
$access = $my_server_hash{$server}{tag};
if ($access == 1) {
$comment = "";
$color="#99FF33";
}
elsif ($member =~ s/$account/FOUND:$account/i && $access !=1) { # this means password is wrong!
$color = "#FF3366";
$comment = "$account password is wrong! ";
}
elsif ($access == 53) {
$comment = " machine unavailable!
";
$color = "#996666";
}
elsif($my_server_hash{$server}{ADMINS}) {
$comment = " $account account does not exist ";
$color = "#FF3333";
}
else {
$comment = " unable to access!
";
$color = "#FF66CC";
}
server_data_row("19%",$color, "27%", "Verdana, Arial, Helvetica, sans-serif","4",$server,$htm_pass_handle);
server_data_row("12%",$color, "27%", "Courier New, Courier, mono","2","$member",$htm_pass_handle);
server_data_row("69%",$color, "27%", "Courier New, Courier, mono","3",$access." $comment",$htm_pass_handle,"");
} # foreach server