Jump to content

Recommended Posts

Posted

We have inactive set to 45 days. However it does not place members inactive, even though some have not filed a priep is over 90 days. This is our current settings in the local.config

After how long to mark a pilot inactive, in days

Config::Set('PILOT_AUTO_RETIRE', true);

Config::Set('PILOT_INACTIVE_TIME', 45);

Posted (edited)

This happened to me a while back and decided to dig deeper into the code.

I have this working:

Go into core/common/PilotData.class.php and find the function findRetiredPilots() and replace it with this one (back it up first)

  Reveal hidden contents

What the original code is doing, is it's looking for any pilots who have logged in and have filed a PIREP before.

The updated code above checks the inactive time and cross-checks it with the "joindate" column in your database and checks if they have filed a PIREP or not.

Edited by web541

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.

×
×
  • Create New...