Skip to content

Commit

Permalink
All settings available in settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Nov 30, 2017
1 parent 964a3c1 commit d0c1c5d
Show file tree
Hide file tree
Showing 15 changed files with 179 additions and 4 deletions.
7 changes: 7 additions & 0 deletions live-czml.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This file is part of FlightAirmap.
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once('require/class.Connection.php');
require_once('require/class.Common.php');
if (isset($globalProtect) && $globalProtect) {
Expand Down
7 changes: 7 additions & 0 deletions require/class.Common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for all common functions
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/libs/simple_html_dom.php');
require_once(dirname(__FILE__).'/libs/uagent/uagent.php');
require_once(dirname(__FILE__).'/settings.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.Connection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for DB connection
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/settings.php');

class Connection{
Expand Down
7 changes: 7 additions & 0 deletions require/class.MarineArchive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for marine archive data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
class MarineArchive {
public $global_query = "SELECT marine_archive.* FROM marine_archive";
public $db;
Expand Down
7 changes: 7 additions & 0 deletions require/class.MarineImport.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used to import marine data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Connection.php');
require_once(dirname(__FILE__).'/class.AIS.php');
require_once(dirname(__FILE__).'/class.Marine.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.MarineLive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for marine live data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
//$global_query = "SELECT marine_live.* FROM marine_live";

class MarineLive {
Expand Down
7 changes: 7 additions & 0 deletions require/class.Satellite.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for satellite data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Connection.php');
require_once(dirname(__FILE__).'/libs/Predict/Predict.php');
require_once(dirname(__FILE__).'/libs/Predict/Predict/Sat.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.SpotterImport.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used to import spotter data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Connection.php');
require_once(dirname(__FILE__).'/class.Spotter.php');
require_once(dirname(__FILE__).'/class.SpotterLive.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.Tracker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used to for trackers data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Scheduler.php');
require_once(dirname(__FILE__).'/class.ACARS.php');
require_once(dirname(__FILE__).'/class.Image.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.TrackerArchive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for trackers archive data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
class TrackerArchive {
public $global_query = "SELECT tracker_archive.* FROM tracker_archive";
public $db;
Expand Down
7 changes: 7 additions & 0 deletions require/class.TrackerImport.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used to import trackers data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Connection.php');
require_once(dirname(__FILE__).'/class.Tracker.php');
require_once(dirname(__FILE__).'/class.TrackerLive.php');
Expand Down
7 changes: 7 additions & 0 deletions require/class.TrackerLive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used for trackers live data
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
//$global_query = "SELECT tracker_live.* FROM tracker_live";

class TrackerLive {
Expand Down
7 changes: 7 additions & 0 deletions require/class.Weather.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* This class is part of FlightAirmap. It's used to get weather data and create clouds
*
* Copyright (c) Ycarus (Yannick Chabanois) <[email protected]>
* Licensed under AGPL license.
* For more information see: https://www.flightairmap.com/
*/
require_once(dirname(__FILE__).'/class.Common.php');
class Weather {
public function buildcloudlayer($metar) {
Expand Down
88 changes: 84 additions & 4 deletions require/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$globalLanguage = 'EN'; // Used only for wikipedia links for now

// MAP PROVIDER
$globalMapProvider = 'MapQuest-OSM'; // Can be Mapbox, OpenStreetMap, MapQuest-OSM or MapQuest-Aerial
$globalMapProvider = 'OpenStreetMap'; // Can be Mapbox, OpenStreetMap, MapQuest-OSM or MapQuest-Aerial
$globalMapboxId = 'examples.map-i86nkdio'; // Mapbox id
$globalMapboxToken = ''; // Mapbox token
$globalGoogleAPIKey = '';
Expand All @@ -30,10 +30,17 @@
// Customs layers source must be configured this way:
//$globalMapCustomLayer = array('custom' => array('url' => 'http://myownserver','maxZoom' => 18, 'minZoom' => 0,'attribution' => 'MySelf'));

// OFFLINE MODE
$globalMapOffline = FALSE; // Use Natural Earth II
$globalOffline = FALSE; // don't try to use internet for anything

// MAP 3D
$globalMap3D = TRUE; // User can choose 3D map
$globalMap3Ddefault = FALSE; // Display 3D map by default
$globalMapSatellites = FALSE; // Display satellites on 3D map
$globalMap3DTiles = ''; // A 3D tileset
$globalMap3DLiveries = FALSE; // Use real liveries in 3D
$globalMap3DOneModel = FALSE; // Use same model for all aircrafts
$globalMap3DShadows = TRUE; // Enable sun shadow on 3D mode

//COVERAGE AREA (its based on a box model. i.e. top-left | top-right | bottom-right | bottom-left)
$globalLatitudeMax = '46.92'; //the maximum latitude (north)
Expand Down Expand Up @@ -84,6 +91,7 @@

// MINIMAL CHANGE TO PUT IN DB
$globalCoordMinChange = '0.02'; // minimal change since last message for latitude/longitude (limit write to DB)
$globalCoordMinChangeTracker = '0.01'; // minimal change since last message for latitude/longitude (limit write to DB) for tracker

// LIVE MAP REFRESH (in seconds)
$globalMapRefresh = '30';
Expand All @@ -102,12 +110,18 @@
// DISPLAY ROUTE OF FLIGHT
$globalMapRoute = TRUE;

// DISPLAY REMAINING ROUTE OF FLIGHT
$globalMapRemainingRoute = TRUE;

// DISPLAY FLIGHTS PATH HISTORY
$globalMapHistory = FALSE;

// FLIGHT ESTIMATION BETWEEN UPDATES
$globalMapEstimation = TRUE;

// PUT ALL FLIGHTS IN DB (even without coordinates)
$globalAllFlights = TRUE;

// WRAP MAP OR REPEAT
$globalMapWrap = TRUE;

Expand All @@ -119,12 +133,18 @@
$globalUnitAltitude = 'm'; // m or feet
$globalUnitSpeed = 'kmh'; // kmh, knots or mph

// CUSTOM CSS
$globalCustomCSS = '';

// *** Pilots/Owners ***
// Force the display of owners or/and pilots. Can be used for paragliding.
//$globalUseOwner = TRUE;
//$globalUsePilot = TRUE;

// *** Virtual flights ***
// Virtual Airline (generic)
$globalVA = FALSE;

//IVAO
$globalIVAO = FALSE;

Expand All @@ -134,8 +154,25 @@
//phpVMS
$globalphpVMS = FALSE;

//Virtual Airlien Manager
$globalVAM = FALSE;

//User can choose between IVAO, VATSIM or phpVMS
$globalMapVAchoose = FALSE;

// Use real airlines even for IVAO & VATSIM
$globalUseRealAirlines = FALSE;

// ************************
// *** Virtual marine ***
// Virtual Marine (generic)
$globalVM = FALSE;

// Sailaway email & pass
//$globalSailaway = array('email' => '', 'password' => '');

// Set custom marine pics
//$globalMarineImagePics = array('type' => array('boat type' => array('image_thumbnail' => '','image' => '', 'image_copyright' => '','image_source' => '','image_source_website' => '')));
// ************************

//ADS-B, SBS1 FORMAT
Expand All @@ -145,7 +182,7 @@

//DATA SOURCES
$globalSources = array(array('host' => '127.0.0.1', 'port' => '30003'));
// ^^ in the form array(array(host => 'host1', 'port' => 'port1','name' => 'first source','format' => 'sbs'),array('host' => 'host2', 'port' => 'port2','name' => 'Other source', 'format' => 'aprs'),array('host' => 'http://xxxxx/whazzup.txt')); Use only sources you have the rights for.
// ^^ in the form array(array(host => 'host1', 'port' => 'port1','name' => 'first source','format' => 'sbs'),array('host' => 'host2', 'port' => 'port2','name' => 'Other source', 'format' => 'aprs'),array('host' => 'http://xxxxx/whazzup.txt'),array('host' => '123.123.123.123', 'name' => 'external', 'callback' => TRUE,'format' => 'hidnseek')); Use only sources you have the rights for.

//ACARS Listen in UDP
$globalACARS = FALSE;
Expand Down Expand Up @@ -278,13 +315,56 @@
$globalNoIdents = FALSE;
//Don't display and try to retrieve airlines
$globalNoAirlines = FALSE;
//Display Owners
$globalUseOwner = TRUE;
//Display Pilots
$globalUsePilot = FALSE;

//Show a tooltip for each flights
$globalMapTooltip = FALSE;

//Display ground station on map
$globalMapGroundStation = TRUE;

//Display weather station on map
$globalMapWeatherStation = TRUE;
//Display lightning on map
$globalMapLightning = TRUE;
//Flights accidents support
$globalAccidents = TRUE;
//Fires support
$globalFires = FALSE;
//Display fires on map
$globalMapFires = FALSE;

//Add waypoints to DB
$globalWaypoints = TRUE;
//Support task .tsk xml files as ?tsk=http://path/toto.tsk
$globalTSK = FALSE;
//Display ground altitude
$globalGroundAltitude = FALSE;

// ****** MODES *****
// Aircraft Mode
$globalAircraft = TRUE;
// Marine Mode
$globalMarine = FALSE;
// Tracker Mode
$globalTracker = FALSE;
// Satellite Mode
$globalSatellite = FALSE;
// ************************

// Enable map matching for tracker mode
$globalMapMatching = FALSE;
// Set map matching source (can be fam, graphhopper, osmr or mapbox)
$globalMapMatchingSource = 'fam';
// Set GraphHopper API key
$globalGraphHopperKey = '';

// News feeds
$globalNewsFeeds = array();
// example: $globalNewsFeeds = array('global' => array('en' => array('http://www.mynewsfeed.com/rss')));

// Get result from archive table for search
$globalArchiveResults = TRUE;
?>
4 changes: 4 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
User-agent: *
Crawl-Delay: 20
Disallow: /images
Disallow: /install
Disallow: /db
Disallow: /data
Disallow: /require

0 comments on commit d0c1c5d

Please sign in to comment.