#**************************************************************************/
use strict;
+use warnings FATAL => 'all';
+no warnings qw(uninitialized);
use POSIX;
our $BODY;
our $DBH;
$query->execute($alliance->{id},$alliance->{id},$alliance->{id},$alliance->{id}) or $error .= $DBH->errstr;
my @intel;
- my $i = 0;
+ $i = 0;
while (my $intel = $query->fetchrow_hashref){
if ($intel->{ingal}){
$intel->{missionclass} = 'ingal';
#**************************************************************************/
use strict;
+use warnings FATAL => 'all';
+no warnings qw(uninitialized);
use POSIX;
our $BODY;
our $DBH;
ORDER BY p.x,p.y,p.z});
$attackers->execute($call->{id});
my @attackers;
- my $i = 0;
+ $i = 0;
while(my $attacker = $attackers->fetchrow_hashref){
$i++;
$attacker->{ODD} = $i % 2;
#**************************************************************************/
use strict;
+use warnings FATAL => 'all';
+no warnings qw(uninitialized);
use POSIX;
our $BODY;
our $DBH;
my $query = $DBH->prepare(intelquery('o.alliance AS oalliance,coords(o.x,o.y,o.z) AS origin',"t.id = ? $showticks"));
$query->execute($planet->{id}) or $error .= $DBH->errstr;
my @intellists;
- my @intel;
+ my @incomings;
my $i = 0;
while (my $intel = $query->fetchrow_hashref){
if ($intel->{ingal}){
}
$i++;
$intel->{ODD} = $i % 2;
- push @intel,$intel;
+ push @incomings,$intel;
}
- push @intellists,{Message => 'Incoming fleets', Intel => \@intel, Origin => 1};
+ push @intellists,{Message => 'Incoming fleets', Intel => \@incomings, Origin => 1};
- my $query = $DBH->prepare(intelquery('t.alliance AS talliance,coords(t.x,t.y,t.z) AS target',"o.id = ? $showticks"));
+ $query = $DBH->prepare(intelquery('t.alliance AS talliance,coords(t.x,t.y,t.z) AS target',"o.id = ? $showticks"));
$query->execute($planet->{id}) or $error .= $DBH->errstr;
- my @intel;
- my $i = 0;
+ my @outgoings;
+ $i = 0;
while (my $intel = $query->fetchrow_hashref){
if ($intel->{ingal}){
$intel->{missionclass} = 'ingal';
}
$i++;
$intel->{ODD} = $i % 2;
- push @intel,$intel;
+ push @outgoings,$intel;
}
- push @intellists,{Message => 'Outgoing Fleets', Intel => \@intel, Target => 1};
+ push @intellists,{Message => 'Outgoing Fleets', Intel => \@outgoings, Target => 1};
$BODY->param(IntelLIsts => \@intellists);
</tr>
<TMPL_LOOP Intel>
<tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
- <td><a href="intel?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
<td><TMPL_VAR NAME=OAlliance></td>
+ <td><a href="intel?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
<td class="<TMPL_VAR NAME=MissionClass>"><TMPL_VAR NAME=Mission></td>
<td align="center"><TMPL_VAR NAME=landingtick></td>
<td align="center"><TMPL_VAR NAME=ETA></td>
<TMPL_LOOP Intel>
<tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
<TMPL_IF Origin>
- <td><a href="<TMPL_VAR NAME=PAGE>?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
<td><TMPL_VAR NAME=OAlliance></td>
+ <td><a href="<TMPL_VAR NAME=PAGE>?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
</TMPL_IF>
<td class="<TMPL_VAR NAME=MissionClass>"><TMPL_VAR NAME=Mission></td>
<td align="center"><TMPL_VAR NAME=landingtick></td>