Jump to content
dimitris

Auto accept pireps

Recommended Posts

Hello i m looking for help ! I like to make an auto accept pirep system, if someone got a code to this please sheare the code with me.

Thank you!

Share this post


Link to post
Share on other sites

There are a couple of ways to do this ->

1 - [bEST WAY] open PIREPData.class.php and find line 783

".PIREP_PENDING.",

and change to

".PIREP_ACCEPTED.",

This will mark any filed PIREP as accepted. Just remember that it will get overwritten in updates and you will have to change it again.

2 - You could also mess with the settings in app.config.php

namely this section

define('PIREP_PENDING', 0);
define('PIREP_ACCEPTED', 1);
define('PIREP_REJECTED', 2);
define('PIREP_INPROGRESS', 3);

although I wouldnt recommend it, as a matter of fact, forget i said it.... :blink:

  • Like 1

Share this post


Link to post
Share on other sites

how can that be done with the Beta Versions?

seems that the file has changed since official release version since your code doesnt stand on line 783 any longer

Share this post


Link to post
Share on other sites

Anyone know a trick around this area now since that line is no longer in the specified file in option #1?

Share this post


Link to post
Share on other sites

I have the file, but not that line of code. I am using Simpilot's phpVMS Extended.

On my version on GutHub here -> https://github.com/DavidJClark/phpVMS_extended/blob/master/core/common/PIREPData.class.php#L709

You will find the line you need at line 709

$pirepdata['accepted'] = PIREP_PENDING;

change to

$pirepdata['accepted'] = PIREP_ACCEPTED;

Share this post


Link to post
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...