require_once 'app_code/EveBrowserFactory.php'; require_once 'app_code/Fleet.php'; require_once 'app_code/Alliance.php'; $brow = EveBowserFactory::Get(); $ogb = !$brow->IsIGB(); $notTrusted = $brow->IsIGB() && !$brow->IsTrusted(); $trusted = $brow->IsIGB() && $brow->IsTrusted(); if ($notTrusted) { $brow->RequireTrust(); } $otherAlliances; if ($trusted) { $otherAlliances = Alliance::GetAlliancesOtherThanMineWithFleets($brow->AllianceID()); } else { $otherAlliances = Alliance::GetAlliancesOtherThanMineWithFleets(-1); } $otherFleets = array(); foreach ($otherAlliances as $a) { $otherFleets[$a->Id] = $a->ActiveFleets(); } $myFleets; if ($trusted) { $myFleets = Fleet::GetFleetsForAlliance($brow->AllianceId()); } DataManager::GetInstance()->CloseConnection(); function printAllianceFleets($name, $fleets, $myFleet = TRUE) { echo '<h2>' . $name . '</h2>'; foreach ($fleets as $f) { echo gmdate('H:i', $f->Added);