Jump to content

Auto accept pireps


dimitris

Recommended Posts

  • Administrators

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
Link to comment
Share on other sites

  • 2 years later...
  • 10 months later...
  • Administrators

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;

Link to comment
Share on other sites

  • 2 weeks later...

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...