|
@@ 700-700 (lines=1) @@
|
| 697 |
|
$data['datetime'] = date('Y-m-d H:i:s'); |
| 698 |
|
$data['format_source'] = 'raw'; |
| 699 |
|
if (isset($globalSources[$nb]['name']) && $globalSources[$nb]['name'] != '') $data['source_name'] = $globalSources[$nb]['name']; |
| 700 |
|
if (isset($globalSources[$nb]['sourcestats'])) $data['sourcestats'] = $globalSources[$nb]['sourcestats']; |
| 701 |
|
$SI->add($data); |
| 702 |
|
} |
| 703 |
|
} elseif ($format == 'flightgearsp') { |
|
@@ 771-771 (lines=1) @@
|
| 768 |
|
$data['id_source'] = $id_source; |
| 769 |
|
$data['format_source'] = 'tsv'; |
| 770 |
|
if (isset($globalSources[$nb]['name']) && $globalSources[$nb]['name'] != '') $data['source_name'] = $globalSources[$nb]['name']; |
| 771 |
|
if (isset($globalSources[$nb]['sourcestats'])) $data['sourcestats'] = $globalSources[$nb]['sourcestats']; |
| 772 |
|
$SI->add($data); |
| 773 |
|
unset($lined); |
| 774 |
|
unset($data); |
|
@@ 809-809 (lines=1) @@
|
| 806 |
|
$data['id_source'] = $id_source; |
| 807 |
|
$data['format_source'] = 'aprs'; |
| 808 |
|
$data['source_name'] = $line['source']; |
| 809 |
|
if (isset($globalSources[$nb]['sourcestats'])) $data['sourcestats'] = $globalSources[$nb]['sourcestats']; |
| 810 |
|
$currentdate = date('Y-m-d H:i:s'); |
| 811 |
|
$aprsdate = strtotime($data['datetime']); |
| 812 |
|
// Accept data if time <= system time + 20s |
|
@@ 850-850 (lines=1) @@
|
| 847 |
|
$data['emergency'] = $line[19]; |
| 848 |
|
$data['format_source'] = 'sbs'; |
| 849 |
|
if (isset($globalSources[$nb]['name']) && $globalSources[$nb]['name'] != '') $data['source_name'] = $globalSources[$nb]['name']; |
| 850 |
|
if (isset($globalSources[$nb]['sourcestats'])) $data['sourcestats'] = $globalSources[$nb]['sourcestats']; |
| 851 |
|
$data['id_source'] = $id_source; |
| 852 |
|
$send = $SI->add($data); |
| 853 |
|
unset($data); |