VatsimPHP Who's Online Generator v3.0 by Brian Beach There are four files in this package: VatsimPHPgenerator.php, VatsimPHPversions.txt, VatsimPHPoptions.txt, and VatsimPHPuseroptions.txt. ================================================================================================================================================ ================================================================================================================================================ VatsimPHPversions.txt This file is used internally only, only used to check for updates from VatsimPHP. DO NOT EDIT!!! ================================================================================================================================================ VatsimPHPoptions.txt Customizible file used to change download variables. ================================================================================================================================================ VatsimPHPuseroptions.txt Customizible file used to get variables per user on Vatsim. Use with caution. ================================================================================================================================================ VatsimPHPgenerator.php This file is the heart of VatsimPHP. Once used in the "include" function (include "VatsimPHPgenerator.php"), exports data as a single array: $VatsimPHPdata. Below is a detailed listing of different variables. ------------------------------------------------------------------------------------------------------------------------------------------------ $VatsimPHPdata - The main array used $VatsimPHPdata['DOWNLOAD TIME'] - Subarray for download times $VatsimPHPdata['DOWNLOAD TIME']['METAR'] - The download time (in seconds) to download an updated METAR file $VatsimPHPdata['DOWNLOAD TIME']['SATNET-DATA'] - The download time (in seconds) to download an updated SATNET-DATA file $VatsimPHPdata['DOWNLOAD TIME']['STATUS'] - The download time (in seconds) to download an updated STATUS file $VatsimPHPdata['GENERAL'] - General Vatsim.net server information $VatismPHPdata['GENERAL']['ATIS ALLOW MIN'] - The time allowed (in minutes) before updating ATIS information $VatsimPHPdata['GENERAL']['CONNECTED CLIENTS'] - The current number of clients connected to Vatsim $VatsimPHPdata['GENERAL']['RELOAD'] - The current revision of the satnet-data file $VatsimPHPdata['GENERAL']['UPDATE'] - The time the satnet-data file was last updated $VatsimPHPdata['GENERAL']['VERSION'] - The current satnet-data version $VatsimPHPdata['METAR'] - Subarray for metar information $VatsimPHPdata['METAR'][%icao%] - METAR information for airport %icao% $VatsimPHPdata['RAW'] - Subarray for raw file data $VatsimPHPdata['RAW']['METAR'] - Subarray for metar file information $VatsimPHPdata['RAW']['METAR'][#] - Single line from metar file $VatsimPHPdata['RAW']['SATNET-DATA'] - Subarray for satnet-data file information $VatsimPHPdata['RAW']['SATNET-DATA'][#] - Single line from satnet-data file $VatsimPHPdata['RAW']['STATUS'] - Subarray for status file information $VatsimPHPdata['RAW']['STATUS'][#] - Single line from status file $VatsimPHPdata['SERVER'] - Subarray for server information $VatsimPHPdata['SERVER']['LIST'] - Subarray for server names $VatsimPHPdata['SERVER']['LIST'][#] - Name of server $VatsimPHPdata['SERVER'][%name%] - Subarray for server %name% $VatsimPHPdata['SERVER'][%name%]['CLIENTS CONNECTION ALLOWED'] - Tells if connections are allowed to server %name% $VatsimPHPdata['SERVER'][%name%]['HOSTNAME OR IP'] - The IP/hostname of server %name% $VatsimPHPdata['SERVER'][%name%]['IDENT'] - Name of server %name% $VatsimPHPdata['SERVER'][%name%]['LOCATION'] - Location of server %name% $VatsimPHPdata['SERVER'][%name%]['NAME'] - Description of server %name% $VatsimPHPdata['URL'] - Subarray for download and local URLs $VatsimPHPdata['URL']['EXTERNAL'] - The subarray for download URLs $VatsimPHPdata['URL']['EXTERNAL']['METAR'] - The subarray for METAR download URLs $VatsimPHPdata['URL']['EXTERNAL']['METAR'][#] - A download URL for METARs $VatsimPHPdata['URL']['EXTERNAL']['SATNET-DATA'] - The subarray for satnet-data.txt download URLs $VatsimPHPdata['URL']['EXTERNAL']['SATNET-DATA'][#] - A download URL for the satnet-data.txt $VatsimPHPdata['URL']['EXTERNAL']['STATUS'] - The download URL of the status.txt file $VatsimPHPdata['URL']['EXTERNAL']['VATSIMPHP'] - The download folder for VatsimPHP $VatsimPHPdata['URL']['LOCAL'] - The subarray for local URLs $VatsimPHPdata['URL']['LOCAL']['GENERATOR'] - The local filename of the Generator (default "VatsimPHPgenerator.php") $VatsimPHPdata['URL']['LOCAL']['METAR'] - The local filename of the METAR file (default "metars.txt") $VatsimPHPdata['URL']['LOCAL']['SATNET-DATA'] - The local filename of the satnet-data file (default "satnet-data.txt") $VatsimPHPdata['URL']['LOCAL']['STATUS'] - The local filename of the Vatsim status file (default "status.txt") $VatsimPHPdata['URL']['LOCAL']['USER OPTIONS'] - The local filename of the customizible user options file (default "VatsimPHPuseroptions.txt") $VatsimPHPdata['URL']['LOCAL']['VERSIONS'] - The local filename of the VatsimPHP version file (default "VatsimPHPversions.txt") $VatsimPHPdata['USER'] - Subarray for pilot information $VatsimPHPdata['USER'][#] - Subarray for individual pilot information $VatsimPHPdata['USER'][#]['ALTITUDE'] - the current altitude in feet of the pilot or controller. For controllers is the transmitter elevation $VatsimPHPdata['USER'][#]['ATIS_MESSAGE'] - client ATIS message. Only for controllers. It's updated every 30 minutes or every time someone request this client atis by way of the function present at the url shown by "atis0" parameter in the status.txt file. $VatsimPHPdata['USER'][#]['CALLSIGN'] - the callsign of the client. It's the name the client is recognized on the network $VatsimPHPdata['USER'][#]['CID'] - the personal CID of the client. The CID is the unique code assigned by Vatsim to every registered user $VatsimPHPdata['USER'][#]['CLIENTTYPE'] - may be ATC or PILOT $VatsimPHPdata['USER'][#]['FACILITYTYPE'] - type of facility controlled by an ATC. Only for controllers. $VatsimPHPdata['USER'][#]['FREQUENCY'] - the frequency the client is tuned to. Actually only ACT frequencies are reported, PILOT frequencies aren't available $VatsimPHPdata['USER'][#]['GROUNDSPEED'] - the current groundspeed of the pilot. Not available for controllers $VatsimPHPdata['USER'][#]['HEADING'] - the current aircraft heading $VatsimPHPdata['USER'][#]['LATITUDE'] - the current latitude of the position of the pilot or controller. Expressed in degrees and degrees fractions $VatsimPHPData['USER'][#]['LONGITUDE'] - the current longitude of the position of the pilot or controller. Expressed in degrees and degrees fractions $VatsimPHPdata['USER'][#]['REALNAME'] - the realname of the user connected. It's the name the user put into Squawkbox or Asrc when he connects to the network $VatsimPHPdata['USER'][#]['PLANNED_ACTDEPTIME'] - the actual departure time (format is hhmm) put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_AIRCRAFT'] - the aircraft type put into flight plan by the pilot (example: T/B743/F). Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_ALTAIRPORT'] - ICAO code of the planned alternate destination airport put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_ALTITUDE'] - the altitude put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DEPAIRPORT'] - ICAO code of the departure airport put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DEPAIRPORT_LAT'] - latitude of the departure airport. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DEPAIRPORT_LON'] - longitude of the departure airport. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DEPTIME'] - the departure time (format is hhmm) put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DESTAIRPORT'] - the destination airport put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DESTAIRPORT_LAT'] - latitude of the destination airport. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_DESTAIRPORT_LON'] - longitude of the departure airport. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_FLIGHTTYPE'] - type of flight plan submitted. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_HRSENROUTE'] - the hours enroute put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_HRSFUEL'] - the hours of fuel loaded put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_MINENROUTE'] - the minutes enroute put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_MINFUEL'] - the minutes of fuel loaded put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_REMARKS'] - the remarks put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_REVISION'] - revision of flight plan submitted (not sure...). Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_ROUTE'] - the flight plan submitted by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PLANNED_TASCRUISE'] - the true airspeed put into flight plan by the pilot. Only for pilots. Available only after the pilot has submitted a flight plan $VatsimPHPdata['USER'][#]['PREFILED'] - Tells if flight is prefiled $VatsimPHPdata['USER'][#]['PROTREVISION'] - the protocol number revision used by the client $VatsimPHPdata['USER'][#]['QNH_iHg'] - QNH of the aircraft position, expressed in Hg inches $VatsimPHPdata['USER'][#]['QNH_Mb'] - QNH of the aircraft position, expressed in Millibars $VatsimPHPdata['USER'][#]['RATING'] - the rating of the user connected $VatsimPHPdata['USER'][#]['SERVER'] - the server name to which the client is connected $VatsimPHPdata['USER'][#]['TIME_LAST_ATIS_RECEIVED'] - it's the last date and time this client ATIS has been updated in the data server. Format is: yyyymmddhhnnss. If the client changes its atis after this date/time the data server will have an older atis $VatsimPHPdata['USER'][#]['TIME_LOGON'] - it's the date/time the user logged on. The format is yyyymmddhhnnss $VatsimPHPdata['USER'][#]['TRANSPONDER'] - the squawk code set by client. Only for pilots $VatsimPHPdata['USER'][#]['VISUALRANGE'] - range of visibility set by a ATC. Only for controllers $VatsimPHPdata['USERGET'] - Subarray to get pilot numbers $VatsimPHPdata['USERGET']['AIRLINE'] - Subarray to find pilot numbers of an airline $VatsimPHPdata['USERGET']['AIRLINE'][%airline%] - Subarray for pilots of airline %airline% $VatsimPHPdata['USERGET']['AIRLINE'][%airline%][#] - Pilot number of individual pilot flying for airline %airline% $VatsimPHPdata['USERGET']['CALLSIGN'] - Subarray to find pilot number of a callsign $VatsimPHPData['USERGET']['CALLSIGN'][%callsign%] - Gets pilot number for callsign %callsign% $VatsimPHPdata['VERSION'] - Subarray used for version checks $VatsimPHPdata['VERSION']['GENERATOR'] - Subarray used for generator version checks $VatsimPHPdata['VERSION']['GENERATOR']['CURRENT'] - The current generator version number $VatsimPHPdata['VERSION']['GENERATOR']['UPDATE'] - The current available generator version number $VatsimPHPdata['VERSION']['GENERATOR']['UPDATEURL'] - The update URL of the generator $VatsimPHPdata['VOICE'] - Subarray for voice server information $VatsimPHPdata['VOICE']['LIST'] - Subarray for voice server names $VatsimPHPdata['VOICE']['LIST'][#] - Name of voice server $VatsimPHPdata['VOICE'][%name%] - Subarray for voice server %name% $VatsimPHPdata['VOICE'][%name%]['CLIENTS CONNECTION ALLOWED'] - Determines if connections are allowed to server %name% $VatsimPHPdata['VOICE'][%name%]['HOSTNAME OR IP'] - The hostname/IP of voice server %name% $VatsimPHPdata['VOICE'][%name%]['LOCATION'] - The location of voice server %name% $VatsimPHPdata['VOICE'][%name%]['NAME'] - The name of voice server %name% $vatsimPHPdata['VOICE'][%name%]['TYPE OF VOICE SERVER'] - The type of voice server %name%