Moderators mark1million Posted March 28, 2010 Moderators Report Share Posted March 28, 2010 Nabeel, now my VA is using kACARS and the data is reliable i was wondering is there any way i could automatically accept pireps from that acars only? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 28, 2010 Administrators Report Share Posted March 28, 2010 Nabeel, now my VA is using kACARS and the data is reliable i was wondering is there any way i could automatically accept pireps from that acars only? Yes, you'd have to add the option to the PIREP array of 'accepted' => PIREP_ACCEPTED. Perhaps Jeff can point you in the right direction on where to place that, I don't have it installed Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 28, 2010 Author Moderators Report Share Posted March 28, 2010 Ok, thanks. Quote Link to comment Share on other sites More sharing options...
WA101-ALLAN Posted March 29, 2010 Report Share Posted March 29, 2010 Im testing that out now will let you know how it comes out. Kind Regards, Allan CEO Wings Aviation Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 29, 2010 Author Moderators Report Share Posted March 29, 2010 Nabeel, i have tried adding this after communicating with jeff and it does not work, is that the correct format? 'accepted' => PIREP_ACCEPTED In to the array i have tried, 'accepted' => 'PIREP_ACCEPTED', and 'accepted' => PIREP_ACCEPTED, Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted March 29, 2010 Report Share Posted March 29, 2010 Nabeel, i have tried adding this after communicating with jeff and it does not work, is that the correct format? 'accepted' => PIREP_ACCEPTED In to the array i have tried, 'accepted' => 'PIREP_ACCEPTED', and 'accepted' => PIREP_ACCEPTED, Nabeel, Is the PIREP_ACCEPTED supposed to go into PirepData or come out of it? Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted March 29, 2010 Report Share Posted March 29, 2010 Nevermind. I believe I found it. PIREPData.class.php Around line 770 VALUES ( {$pirepdata['pilotid']}, '{$pirepdata['code']}', '{$pirepdata['flightnum']}', '{$pirepdata['depicao']}', '{$pirepdata['arricao']}', '{$pirepdata['route']}', '{$pirepdata['route_details']}', '{$pirepdata['distance']}', '{$pirepdata['aircraft']}', '{$pirepdata['flighttime']}', '{$flighttime_stamp}', '{$pirepdata['landingrate']}', NOW(), ".PIREP_PENDING.", '{$pirepdata['log']}', '{$pirepdata['load']}', '{$pirepdata['fuelused']}', '0', '{$pirepdata['source']}', {$pirepdata['exported']}, '{$pirepdata['rawdata']}')"; I am assuming Mark should replace the PIREP_PENDING with PIREP_ACCEPTED Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 29, 2010 Author Moderators Report Share Posted March 29, 2010 That would make sense lol But wouldn't that accept all pireps? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 29, 2010 Administrators Report Share Posted March 29, 2010 Instead of editing that then, just call: PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED) I guess you get the $pirepid after you submit it Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 1, 2010 Author Moderators Report Share Posted April 1, 2010 Not sure where to post this, Nabeel and Jeff, i have an updated script from Jeff which now accepts pireps from kACARS but it isnt updating the pilots hours, its adding the pirep as accepted OK just not adding to the pilots hours totals. I have manually run the reset hours from the admin menu which has updated everyone correctly. Jeff, I will post on your forum also. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 1, 2010 Administrators Report Share Posted April 1, 2010 Not sure where to post this, Nabeel and Jeff, i have an updated script from Jeff which now accepts pireps from kACARS but it isnt updating the pilots hours, its adding the pirep as accepted OK just not adding to the pilots hours totals. I have manually run the reset hours from the admin menu which has updated everyone correctly. Jeff, I will post on your forum also. I will change it to re-calculate when changing the status. You'd place that code probably in the kACARS module is the best idea. 1 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 1, 2010 Author Moderators Report Share Posted April 1, 2010 Thanks Nabeel Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted April 1, 2010 Report Share Posted April 1, 2010 Mark, I will give it a little looksie when I get home. Regards, Jeff Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 1, 2010 Author Moderators Report Share Posted April 1, 2010 Thanks Jeff, I wasnt sure where to post if it was a phpVMS or kACARS resolution but if like Nabeel said its just a case of placing the current update script in the file then it should be an easy fix. Hopefully... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.