use vars qw(%list %valid $filterdef $maxlevel);
%valid = (
- parent => '0,Parent Calls,parray',
call => "0,Callsign",
- flags => "0,Flags,phex",
+ city => '0,City',
+ cq => '0,CQ Zone',
dxcc => '0,Country Code',
+ flags => "0,Flags,phex",
+ ip => '0,IP Address',
itu => '0,ITU Zone',
- cq => '0,CQ Zone',
+ parent => '0,Parent Calls,parray',
state => '0,State',
- city => '0,City',
- ip => '0,IP Address',
);
$filterdef = bless ([
my $c;
if ($uref) {
$c = $uref->user_call;
- } else {
+ }
+ else {
$c = "$ucall?";
}
if ((length $line) + (length $c) + 1 < $width) {
$line .= $c . ' ';
- } else {
+ }
+ else {
$line =~ s/\s+$//;
push @out, $line;
$line = ' ' x ($level*2) . "$pcall->$c ";
$line =~ s/->$//g;
$line =~ s/\s+$//;
push @out, $line if length $line;
- } else {
+ }
+ else {
# recursion detector
if ((DXChannel::get($call) && $level > 1) || $seen->{$call} || $level > $maxlevel) {
return @out;
{
my $nodes = Route::Node::count();
my $tot = Route::User::count();
- my ($users, $maxlocalusers) = DXCommandmode::user_count();
+ my ($users, $maxlocalusers) = DXCommandmode::user_count(); # the user count is wrong because of skimmers
my $maxusers = Route::User::max();
my $uptime = main::uptime();
- my $localnodes = $DXChannel::count - $users;
+ my $localnodes = $DXChannel::count - $users; # this is now wrong because of skimmers
return ($nodes, $tot, $users, $maxlocalusers, $maxusers, $uptime, $localnodes);
return $val->{$ele} || $valid{$ele};
}
+sub write_cache
+{
+ Route::Node::write_cache();
+ Route::User::write_cache();
+}
+
+sub read_cache
+{
+ Route::Node::read_cache();
+ Route::User::read_cache();
+}
+
#
# generic AUTOLOAD for accessors
#