Jump to content

this one is for mark from easyjet


joeri

Recommended Posts

  • Moderators

HI Joeri,

If you send a email to Michal Rok he will set vroute to look for a text file with all your vatsim id's in and new ones will automatically be added to your community overnight.

This is the code i use to pull the vatsim id's from the database.

<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
include 'Your site path//core/codon.config.php';
$allpilots = PilotData::getAllPilots();
foreach($allpilots as $pilot)
{
       echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
echo '<br />';
}
?>

All you need to change is the include to your location and it does need the two // for some reason :)

Just put that in a file and give the url to Michal.

Link to comment
Share on other sites

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