Ejemplo n.º 1
0
                             }
                         }
                     }
                 }
                 // Eviction/inactivity check
                 if ($aTempWH->isWHLocus() && strtotime("+" . EVEKILL_EVICTION_INACTIVE_MONTHS . " months", strtotime($topCorp->battle[0]->timestamp)) - time() < 0) {
                     printf('<br/><span class="advisory">NOTE: Their last battle here was over %d months ago, on %s - possibly inactive or have moved out?</span>', EVEKILL_EVICTION_INACTIVE_MONTHS, date("d M Y H:i", strtotime($topCorp->battle[0]->timestamp)));
                 }
             }
         }
         printf('</p>');
         // ==============================================================================
     }
     // ==============================================================================
 }
 $tzArray = $aKillboard->getTimezoneActivity($aryResident);
 $addTZ = array();
 if (is_array($tzArray)) {
     $topTZ = current($tzArray);
     printf('<p>%s%s are most active in system during the <span class="h6">%s</span> timezone (EVE%s) with <span class="h6">%0.2f%%</span> of all activity. ', ICON_TIMEZONE_IMAGE, $allianceOccupied || sizeof($aryResident) > 1 ? "Collectively they" : "They", $topTZ["name"], sprintf("%s%d", $topTZ["shift"] >= 0 ? "+" : "", $topTZ["shift"]), $topTZ["r-perc"]);
     foreach ($tzArray as $aTimezone) {
         if ($aTimezone == $topTZ) {
             continue;
         }
         $addTZ[] = sprintf('%s - %0.2f%%', $aTimezone["name"], $aTimezone["r-perc"]);
     }
     printf("(%s).</p>", implode(", ", $addTZ));
 }
 // Work out whether the top corp has used capital ships in this system
 $capKills = $aKillboard->getActivityInvolvingCaps();
 if (sizeof($capKills) > 0) {