Jump to content

Recommended Posts

Posted

Hi Guys,

On our site, when in the registration process, the pilot has to enter their VATSIM CiD.

Once registered, that data gets passed to the back-end for the pilot to get accepted/rejected, and the CiD they entered is displayed, my question is, is there a piece of code or API out there that will display the pilots name from VATSIM on the back-end VMS so we can check the name they entered in our system corresponds with that of the VATSIM account.

Thanks,

Joe

  • Moderators
Posted

You can use this link:

https://cert.vatsim.net/cert/vatsimnet/idstatus.php?cid=xxxxxxx

Where xxxxxxx you should replace it with the pilot's vatsim cid. You can create a code which will get the data from this page and place it on your website. Unfortunately, i have never worked with xml so i can't help you more.

George

  • Members
Posted

This is a function that i created for you just copy the file in /core/common

and call it with

echo vatsimpilotchk::search_pilot_online(Here you need to put somehow the vatsim id);

this will bring the last name and first time from vatsim cert server

vatsimpilotchk.class.php

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