|
@@ 377-385 (lines=9) @@
|
| 374 |
|
$data['info'] = str_replace('^§','<br />',$data['info']); |
| 375 |
|
$data['info'] = str_replace('&sect;','',$data['info']); |
| 376 |
|
$typec = substr($data['ident'],-3); |
| 377 |
|
if ($typec == 'APP') $data['type'] = 'Approach'; |
| 378 |
|
elseif ($typec == 'TWR') $data['type'] = 'Tower'; |
| 379 |
|
elseif ($typec == 'OBS') $data['type'] = 'Observer'; |
| 380 |
|
elseif ($typec == 'GND') $data['type'] = 'Ground'; |
| 381 |
|
elseif ($typec == 'DEL') $data['type'] = 'Delivery'; |
| 382 |
|
elseif ($typec == 'DEP') $data['type'] = 'Departure'; |
| 383 |
|
elseif ($typec == 'FSS') $data['type'] = 'Flight Service Station'; |
| 384 |
|
elseif ($typec == 'CTR') $data['type'] = 'Control Radar or Centre'; |
| 385 |
|
elseif ($data['type'] == '') $data['type'] = 'Observer'; |
| 386 |
|
|
| 387 |
|
echo $ATC->add($data['ident'],$data['frequency'],$data['latitude'],$data['longitude'],$data['range'],$data['info'],$data['datetime'],$data['type'],$data['pilot_id'],$data['pilot_name']); |
| 388 |
|
} |
|
@@ 599-607 (lines=9) @@
|
| 596 |
|
$data['info'] = str_replace('&sect;','',$data['info']); |
| 597 |
|
$typec = substr($data['ident'],-3); |
| 598 |
|
$data['type'] = ''; |
| 599 |
|
if ($typec == 'APP') $data['type'] = 'Approach'; |
| 600 |
|
elseif ($typec == 'TWR') $data['type'] = 'Tower'; |
| 601 |
|
elseif ($typec == 'OBS') $data['type'] = 'Observer'; |
| 602 |
|
elseif ($typec == 'GND') $data['type'] = 'Ground'; |
| 603 |
|
elseif ($typec == 'DEL') $data['type'] = 'Delivery'; |
| 604 |
|
elseif ($typec == 'DEP') $data['type'] = 'Departure'; |
| 605 |
|
elseif ($typec == 'FSS') $data['type'] = 'Flight Service Station'; |
| 606 |
|
elseif ($typec == 'CTR') $data['type'] = 'Control Radar or Centre'; |
| 607 |
|
else $data['type'] = 'Observer'; |
| 608 |
|
echo $ATC->add($data['ident'],'',$data['latitude'],$data['longitude'],'0',$data['info'],$data['datetime'],$data['type'],$data['pilot_id'],$data['pilot_name']); |
| 609 |
|
} |
| 610 |
|
unset($data); |