$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'])) {
         if ($row['result_online'] < $config['minimal_fuel']) {
             $mail->posalert($characterInfo['email'], $characterInfo['name'], $row, $row3, $diff);
         }
     }