our $LOG = $DBH->prepare('INSERT INTO log (uid,text) VALUES(?,?)');
my $page = 'main';
-if (param('page') =~ /^(main|check|motd|points|covop|top100|launchConfirmation|addintel|defrequest|raids|editRaid|calls|intel|users|alliances)$/){
+if (param('page') =~ /^(main|check|motd|points|covop|top100|launchConfirmation|addintel|defrequest|raids|editRaid|calls|intel|users|alliances|memberIntel|resources)$/){
$page = $1;
}
our $XML = 0;
$XML = 1 if param('xml') and $page =~ /^(raids)$/;
+our $AJAX = 1;
+
my $type = 'text/html';
if ($XML){
$type = 'text/xml';
$TEMPLATE->param(isHC => isHC());
$TEMPLATE->param(isDC => isDC());
$TEMPLATE->param(isBC => isBC());
+ $TEMPLATE->param(isIntel => isBC());
$TEMPLATE->param(isAttacker => $ATTACKER && (!isMember() || ((($TICK - $fleetupdate < 24) || isScanner()) && $PLANET)));
if ($ATTACKER && (!isMember() || ((($TICK - $fleetupdate < 24) || isScanner()) && $PLANET))){
$ND::TEMPLATE->param(Targets => listTargets());
$PLANET = undef;
$TEMPLATE = undef;
$TICK = undef;
-%GROUPS = undef;
+undef %GROUPS;
$ND::BODY = undef;
exit;