Jump to content

Recommended Posts

Posted

Is possible in phpvms prevent to receive pireps for flights who are non booked?

One of my pilots manualy fill acars and after flight complete send and system receive flight which is not in va system.

  • 3 weeks later...
  • Administrators
Posted

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;
    }

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