Hello,
i try to work out a scoring system using fspax pireps and this is what i have done so far:
1. created 2 fields in the db table "_pireps", named "bonus" and "penalty"
2. added the following code to the /acars/fspax.php:
$data = array( 'pilotid'=>$pilotid,
'code'=>$code,
'flightnum'=>$flightnum,
'leg'=>$leg,
'depicao'=>$depicao,
'arricao'=>$arricao,
'aircraft'=>$aircraft,
'route' => '',
'flighttime'=>$flighttime,
'landingrate'=>$_POST['TouchDownVertSpeedFt'],
'submitdate'=>'NOW()',
'load'=>$_POST['NbrPassengers'],
'fuelused'=>$fuelused,
'bonus'=>$_POST['BonusPoints'],
'penalty'=>$_POST['PenaltyPoints'],
'score'=>$score,
'source'=>'fspax',
'comment'=>$comment,
'log'=> $log);
So, i suppose in every fspax pirep, the bonus and penalty values should be added. But no...when exporting a pirep, these values are not inserted in the pirep db.
Any help please?