$eveRender->Assign('access', $access); $args['pr'] = 2; $rows = $posmgmt->GetAllPos2($args); foreach ($rows as $key => $row) { $row2 = $posmgmt->GetLastPosUpdate($row['pos_id']); $tower = $posmgmt->GetTowerInfo($row['pos_id']); if ($tower) { $tower['current_cpu'] = $tower['cpu']; $tower['current_pg'] = $tower['powergrid']; } $charters_needed = $tower['charters_needed']; $pos_size = $row['pos_size']; $pos_race = $row['pos_race']; $systemID = $row['systemID']; $allianceid = $row['allianceid']; $tower['sovfriendly'] = $posmgmt->getSovereigntyStatus($systemID, $allianceid); $row3 = $posmgmt->GetStaticFBTowerInfo(array('pos_race' => $pos_race, 'pos_size' => $pos_size)); if ($tower['sovfriendly'] == 1) { $tower['hasSov'] = 0.75; } else { $tower['hasSov'] = 1; } if ($row3) { $tower['required_fuelblock'] = ceil($row3['fuelblock'] * $tower['hasSov']); $tower['required_strontium'] = ceil($row3['strontium'] * $tower['hasSov']); $tower['required_charters'] = $charters_needed ? 1 : 0; $row3['charters'] = $tower['required_charters']; $tower['total_pg'] = $row3['pg']; $tower['total_cpu'] = $row3['cpu']; $tower['uptimecalc'] = $posmgmt->uptimecalc($row['pos_id']); $tower['pos_capacity'] = $tower['fuel_hangar'] = $row3['fuel_hangar'];