Jump to content

[SOLVED] Pirep log help


ProSkyDesign

Recommended Posts

  • Moderators

This is what is reported by the acars software and storred into your pireps table. The only way to remove times is updating your phpvms pireps database table which has to be done for each pirep. Otherwise, I would suggest getting in touch with smartCars support team.

Link to comment
Share on other sites

You can exclude certain elements of data from being shown, I am not familiar with the exact php code to do so but you're essentially creating an IF statement:

 

IF this format [01:02:03] Engine started,ONLY display Engine started. Its complex but you'll be able to get it done if you truly want to.

 

Link to comment
Share on other sites

  • Moderators

Taking into consideration what t_bergman suggested and trying to make it more simple, can you give that a try? Open your pirep_viewreport.tpl and find this:

echo $line .'<br />';

and replace it with:

echo preg_replace('/\[[0-9]{2}:[0-9]{2}:[0-9]{2}\]/', '', $line) .'<br />';

 

Link to comment
Share on other sites

  • Moderators
On 8/1/2017 at 3:21 PM, servetas said:

Taking into consideration what t_bergman suggested and trying to make it more simple, can you give that a try? Open your pirep_viewreport.tpl and find this:


echo $line .'<br />';

and replace it with:


echo preg_replace('/\[[0-9]{2}:[0-9]{2}:[0-9]{2}\]/', '', $line) .'<br />';

 

It works !! :D thanks ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...