$self->{TITLE} = 'CovOp Targets';
my $DBH = $self->{DBH};
- return $self->noAccess unless $self->isHC;
+ return $self->noAccess unless $self->isMember;
my $show = q{AND ((planet_status IS NULL OR NOT planet_status IN ('Friendly','NAP')) AND (relationship IS NULL OR NOT relationship IN ('Friendly','NAP')))};
$show = '' if defined param('show') && param('show') eq 'all';
$query->execute($self->{PLANET});
my @targets;
- my $i = 0;
while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$max) = $query->fetchrow){
- $i++;
push @targets,{Target => $id, Coords => $coords
, Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents
- , Dists => $dists, MaxResHack => $max, List => $list, ODD => $i % 2};
+ , Dists => $dists, MaxResHack => $max, List => $list};
}
$BODY->param(Targets => \@targets);
return $BODY;