I am programming my own ACARS and everything is going fine, but I cannot use the correct format for displaying the LOG field, on PIREP, same way kACARS does.
I would like the LOG on PIREP to display this way:
Not sure what you mean, on the phpVMS side? You have to write an ACARS module and however you pass a detailed log to it you have to store that
Yes. I´ve already made my ACARS and I am passing the data. For example DATA1=one|two|three|four
I want to make the $log_str = $_GET[‘DATA1’] directed to $PIREP = array ( …, … ‘log’=> $log_str, … )
Formatted using that:
$log_str = str_replace(‘|’, ’ ', $log_str);
$log_str = wordwrap($log_str, 25, “\n”);
The problem is that when I process the PIREP array (using ACARSData::FilePIREP($pilotid, $PIREP) ), looking on the …pirepadmin/viewpending the LOG field looks like this