# (2) Converted checks to new plugin mechanism (Stephen Johnson May 28, 1999)
# Added user-configurable escalation mechanism
#
-# $Id: spong-network.pl,v 1.33 2001/04/17 02:30:17 sljohnson Exp $
+# $Id: spong-network.pl,v 1.34 2001/04/17 02:58:12 sljohnson Exp $
use Carp;
use lib "@@LIBDIR@@";
# Fallback, if we didn't read things correctly...
- if( sort @HOSTS_LIST != sort keys %HOSTS ) {
+ if( sort ( @HOSTS_LIST ) != sort ( keys %HOSTS ) ) {
@HOSTS_LIST = sort keys %HOSTS; }
&debug( "host file loaded" );
}
# There are one or more update processes that listen for status updates
# from client programs.
-# $Id: spong-server.pl,v 1.40 2001/03/26 19:22:52 sljohnson Exp $
+# $Id: spong-server.pl,v 1.41 2001/04/17 02:58:12 sljohnson Exp $
use lib "@@LIBDIR@@";
# Fallback, if we didn't read things correctly...
- if( sort @HOSTS_LIST != sort keys %HOSTS ) {
+ if( sort ( @HOSTS_LIST ) != sort ( keys %HOSTS ) ) {
@HOSTS_LIST = sort keys %HOSTS; }
# Do the same thing for the groups file.
close( GROUPS );
eval $evalme || die "Invalid spong.groups file: $@";
- if( sort @GROUPS_LIST != sort keys %GROUPS ) {
+ if( sort ( @GROUPS_LIST ) != sort ( keys %GROUPS ) ) {
@GROUPS_LIST = sort keys %GROUPS; }
}
# Fallback, if we didn't read things correctly...
- if( sort @HOSTS_LIST != sort keys %HOSTS ) {
+ if( sort ( @HOSTS_LIST ) != sort ( keys %HOSTS ) ) {
@HOSTS_LIST = sort keys %HOSTS; }
# Do the same thing for the groups file.
close( GROUPS );
eval $evalme || die "Invalid spong.groups file: $@";
- if( sort @GROUPS_LIST != sort keys %GROUPS ) {
+ if( sort ( @GROUPS_LIST ) != sort ( keys %GROUPS ) ) {
@GROUPS_LIST = sort keys %GROUPS; }
}
# History
# (1) Created, pulled out of www-spong program (Ed 07-28-97)
#
-# $Id: www-spong-ack.pl,v 1.8 2000/11/06 19:39:06 sljohnson Exp $
+# $Id: www-spong-ack.pl,v 1.9 2001/04/17 02:58:12 sljohnson Exp $
use CGI;
use Sys::Hostname;
# Fallback, if we didn't read things correctly...
- if( sort @HOSTS_LIST != sort keys %HOSTS ) {
+ if( sort ( @HOSTS_LIST ) != sort ( keys %HOSTS ) ) {
@HOSTS_LIST = sort keys %HOSTS; }
# Do the same thing for the groups file.
close( GROUPS );
eval $evalme || die "Invalid spong.groups file: $@";
- if( sort @GROUPS_LIST != sort keys %GROUPS ) {
+ if( sort ( @GROUPS_LIST ) != sort ( keys %GROUPS ) ) {
@GROUPS_LIST = sort keys %GROUPS; }
}
# (3) Re-did as a client which gets info from the spong-server (07/24/1997)
# (4) Did a whole bunch of stuff (Ed Hill, 06/18/1998)
#
-# $Id: www-spong.pl,v 1.19 2000/11/21 18:27:07 sljohnson Exp $
+# $Id: www-spong.pl,v 1.20 2001/04/17 02:58:12 sljohnson Exp $
use Sys::Hostname;
use Getopt::Long;
# Fallback, if we didn't read things correctly...
- if( sort @HOSTS_LIST != sort keys %HOSTS ) {
+ if( sort ( @HOSTS_LIST ) != sort ( keys %HOSTS ) ) {
@HOSTS_LIST = sort keys %HOSTS; }
# Do the same thing for the groups file.
close( GROUPS );
eval $evalme || die "Invalid spong.groups file: $@";
- if( sort @GROUPS_LIST != sort keys %GROUPS ) {
+ if( sort ( @GROUPS_LIST ) != sort ( keys %GROUPS ) ) {
@GROUPS_LIST = sort keys %GROUPS; }
}