$row['bgcolor'] = $colors['edited_background_color']; $row['textcolor'] = $colors['edited_text_color']; } if (isset($focus_fuel) && $row['result_online'] <= $focus_fuel) { $row['bgcolor'] = $colors['focus_fuel_background_color']; $row['textcolor'] = $colors['focus_fuel_font_color']; } if ($row['result_online'] <= $minimal_fuel) { $row['bgcolor'] = $colors['minimal_fuel_background_color']; $row['textcolor'] = $colors['minimal_fuel_font_color']; } if ($row['result_online'] <= $critical_fuel) { $row['bgcolor'] = $colors['critical_fuel_background_color']; $row['textcolor'] = $colors['critical_fuel_text_color']; } $row['uptimecalc'] = $posmgmt->uptimecalc($row['pos_id']); $disp_rows[$key] = $row; } $pager = array('numitems' => $towercount, 'limit' => $args['limit'], 'page' => $args['page']); $eveRender->Assign('rows', $rows); $eveRender->Assign('pager', $pager); $eveRender->Assign('sb', $user_track[1]); $eveRender->Assign('st', $st); $eveRender->Assign('arrposize', array(1 => 'Small', 2 => 'Medium', 3 => 'Large')); $eveRender->Assign('config', $config); $eveRender->Assign('poses', $disp_rows); $eveRender->Display('track.tpl'); } else { $eve->SessionSetVar('errormsg', 'User not logged in or Access Denied - Please login or Contact your Admin!'); $eve->RedirectUrl('login.php'); }
$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']; } $row['result_uptimecalc'] = $posmgmt->uptimecalc($row['pos_id']); $row['result_online'] = $posmgmt->online($row['result_uptimecalc']); $row['last_update'] = gmdate("Y-m-d H:i:s", $row2['datetime']); $row['online'] = $posmgmt->daycalc($row['result_online']); $row['region'] = $posmgmt->getRegionNameFromMoonID($row['MoonName']); $row['system'] = $posmgmt->getSystemName($row['systemID']); $row['result_optimal'] = $posmgmt->posoptimaluptime($tower); $rows[$key] = $row; $characterInfo = $posmgmt->GetUserInfofromID($row['owner_id']); $secondary_characterInfo = $posmgmt->GetUserInfofromID($row['secondary_owner_id']); $diff = array('fuelblock' => $row['result_optimal']['optimum_fuelblock'] - $row['fuelblock'], 'charters' => $row['result_optimal']['optimum_charters'] - $row['charters']); if ($row['pos_status'] >= 2) { if ($characterInfo['away'] != 1 && isset($characterInfo['email'])) {
$tower['hasSov'] = 0.75; } else { $tower['hasSov'] = 1; } if ($row) { $tower['required_fuelblock'] = ceil($row['fuelblock'] * $tower['hasSov']); $tower['required_strontium'] = ceil($row['strontium'] * $tower['hasSov']); $tower['required_charters'] = $charters_needed ? 1 : 0; $tower['fuelblockID'] = $row['fuelblockID']; $tower['total_pg'] = $row['pg']; $tower['total_cpu'] = $row['cpu']; $required_strontium = $row['strontium']; $required_charters = $charters_needed ? 1 : 0; $total_pg = $row['pg']; $total_cpu = $row['cpu']; $tower['uptimecalc'] = $posmgmt->uptimecalc($pos_id); $tower['pos_capacity'] = $tower['fuel_hangar'] = $row['fuel_hangar']; $tower['strontium_capacity'] = $row['strontium_hangar']; } $mods = $posmgmt->GetAllPosMods($pos_id); if ($mods) { $current_pg = 0; $current_cpu = 0; foreach ($mods as $row) { if ($row['online']) { $current_pg = $current_pg + $row['pg']; $current_cpu = $current_cpu + $row['cpu']; } } } else { $current_pg = 0;