diff --git a/live-czml.php b/live-czml.php index f9e2b28d..755fc8be 100644 --- a/live-czml.php +++ b/live-czml.php @@ -1,4 +1,11 @@ + * 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) { diff --git a/require/class.Common.php b/require/class.Common.php index 2e9a01ec..f54074c6 100644 --- a/require/class.Common.php +++ b/require/class.Common.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.Connection.php b/require/class.Connection.php index 0980f644..42f2e014 100644 --- a/require/class.Connection.php +++ b/require/class.Connection.php @@ -1,4 +1,11 @@ + * Licensed under AGPL license. + * For more information see: https://www.flightairmap.com/ +*/ require_once(dirname(__FILE__).'/settings.php'); class Connection{ diff --git a/require/class.MarineArchive.php b/require/class.MarineArchive.php index 7923c0f7..8a2f71d8 100644 --- a/require/class.MarineArchive.php +++ b/require/class.MarineArchive.php @@ -1,4 +1,11 @@ + * 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; diff --git a/require/class.MarineImport.php b/require/class.MarineImport.php index 01ac81ad..ddae3571 100644 --- a/require/class.MarineImport.php +++ b/require/class.MarineImport.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.MarineLive.php b/require/class.MarineLive.php index e3586011..918cebae 100644 --- a/require/class.MarineLive.php +++ b/require/class.MarineLive.php @@ -1,4 +1,11 @@ + * Licensed under AGPL license. + * For more information see: https://www.flightairmap.com/ +*/ //$global_query = "SELECT marine_live.* FROM marine_live"; class MarineLive { diff --git a/require/class.Satellite.php b/require/class.Satellite.php index f439dfb3..f8df782b 100644 --- a/require/class.Satellite.php +++ b/require/class.Satellite.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.SpotterImport.php b/require/class.SpotterImport.php index ca64f229..26c69576 100644 --- a/require/class.SpotterImport.php +++ b/require/class.SpotterImport.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.Tracker.php b/require/class.Tracker.php index 1f5792a1..27aeeaa0 100644 --- a/require/class.Tracker.php +++ b/require/class.Tracker.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.TrackerArchive.php b/require/class.TrackerArchive.php index 22029892..23beaa7d 100644 --- a/require/class.TrackerArchive.php +++ b/require/class.TrackerArchive.php @@ -1,4 +1,11 @@ + * 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; diff --git a/require/class.TrackerImport.php b/require/class.TrackerImport.php index 9ebd8f93..7ba07b9e 100644 --- a/require/class.TrackerImport.php +++ b/require/class.TrackerImport.php @@ -1,4 +1,11 @@ + * 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'); diff --git a/require/class.TrackerLive.php b/require/class.TrackerLive.php index a2fd4ff0..19c825a5 100644 --- a/require/class.TrackerLive.php +++ b/require/class.TrackerLive.php @@ -1,4 +1,11 @@ + * Licensed under AGPL license. + * For more information see: https://www.flightairmap.com/ +*/ //$global_query = "SELECT tracker_live.* FROM tracker_live"; class TrackerLive { diff --git a/require/class.Weather.php b/require/class.Weather.php index 1e3dd225..84e3025f 100644 --- a/require/class.Weather.php +++ b/require/class.Weather.php @@ -1,4 +1,11 @@ + * 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) { diff --git a/require/settings.php b/require/settings.php index 3f844ba6..c62e0014 100644 --- a/require/settings.php +++ b/require/settings.php @@ -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 = ''; @@ -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) @@ -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'; @@ -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; @@ -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; @@ -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 @@ -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; @@ -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; ?> diff --git a/robots.txt b/robots.txt index c8297d4d..dec6292b 100644 --- a/robots.txt +++ b/robots.txt @@ -1,3 +1,7 @@ User-agent: * Crawl-Delay: 20 Disallow: /images +Disallow: /install +Disallow: /db +Disallow: /data +Disallow: /require