Omerr01 Posted June 17, 2014 Report Posted June 17, 2014 I put a pilot on the state retire and it's not doing anything gives it gives him to connect Bock gives him fly to send PIREPS?? How do I fix this? Quote
Administrators simpilot Posted June 19, 2014 Administrators Report Posted June 19, 2014 If I follow your question, I think you are having retired pilots submitting PIREPs, probably through kACARS which in turn sets them back to active and allows them to login. If this is the case, there is a little known item in the file PIREP sequence that does this. In ACARSData.class.php file in the filePIREP function there is a line of code that sets them back to active around line 323. # Set them as non-retired PilotData::setPilotRetired($pilotid, 0); Not a big deal if they are trying to login and submit manually because they never get to that point due to not being able to login. But, using kACARS even if they are retired they can submit a PIREP. You can either comment out the code above which will allow them to submit a PIREP but it will not show and they will not be able to login the site as they will still be retired, or you can add a couple of lines in the "case'pirep'" function at the start to check if the pilot id retired and if they are then just stop the script. $pilotinfo = PilotData::getPilotData($xml->verify->pilotID); if($pilotinfo->retired == 1){exit;} Quote
Omerr01 Posted June 21, 2014 Author Report Posted June 21, 2014 If I follow your question, I think you are having retired pilots submitting PIREPs, probably through kACARS which in turn sets them back to active and allows them to login. If this is the case, there is a little known item in the file PIREP sequence that does this. In ACARSData.class.php file in the filePIREP function there is a line of code that sets them back to active around line 323. # Set them as non-retired PilotData::setPilotRetired($pilotid, 0); Not a big deal if they are trying to login and submit manually because they never get to that point due to not being able to login. But, using kACARS even if they are retired they can submit a PIREP. You can either comment out the code above which will allow them to submit a PIREP but it will not show and they will not be able to login the site as they will still be retired, or you can add a couple of lines in the "case'pirep'" function at the start to check if the pilot id retired and if they are then just stop the script. $pilotinfo = PilotData::getPilotData($xml->verify->pilotID); if($pilotinfo->retired == 1){exit;} okey thanks you very much.. where i put this code : $pilotinfo = PilotData::getPilotData($xml->verify->pilotID); if($pilotinfo->retired == 1){exit;} Quote
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.