Jump to content

Prevent pirep for non bided flights


Ephendi

Recommended Posts

  • 3 weeks later...
  • Administrators

You could add a check in the ACARSData.class.php file, not the best way to do it but would work and cover all the ACARS.

right after

public static function FilePIREP($pilotid, $data) {
    if (!is_array($data)) {
	    self::$lasterror = 'PIREP data must be array';
	    return false;
    }

add

# Reject PIREP if a bid does not exist
    $bidid = SchedulesData::GetBidWithRoute($pilotid, $data['code'], $data['flightnum']);
    if (!$bidid) {
		self::$lasterror = 'Bid Does Not Exist';
	    return false;
    }

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