|
@@ 1270-1282 (lines=13) @@
|
| 1267 |
|
return ''; |
| 1268 |
|
} |
| 1269 |
|
|
| 1270 |
|
public static function update_ModeS_flarm() { |
| 1271 |
|
global $tmp_dir, $globalDebug; |
| 1272 |
|
if ($globalDebug) echo "Modes Flarmnet: Download..."; |
| 1273 |
|
update_db::download('http://flarmnet.org/files/data.fln',$tmp_dir.'data.fln'); |
| 1274 |
|
if (file_exists($tmp_dir.'data.fln')) { |
| 1275 |
|
if ($globalDebug) echo "Add to DB..."; |
| 1276 |
|
$error = update_db::retrieve_modes_flarmnet($tmp_dir.'data.fln'); |
| 1277 |
|
} else $error = "File ".$tmp_dir.'data.fln'." doesn't exist. Download failed."; |
| 1278 |
|
if ($error != '') { |
| 1279 |
|
return $error; |
| 1280 |
|
} elseif ($globalDebug) echo "Done\n"; |
| 1281 |
|
return ''; |
| 1282 |
|
} |
| 1283 |
|
|
| 1284 |
|
public static function update_ModeS_ogn() { |
| 1285 |
|
global $tmp_dir, $globalDebug; |
|
@@ 1284-1296 (lines=13) @@
|
| 1281 |
|
return ''; |
| 1282 |
|
} |
| 1283 |
|
|
| 1284 |
|
public static function update_ModeS_ogn() { |
| 1285 |
|
global $tmp_dir, $globalDebug; |
| 1286 |
|
if ($globalDebug) echo "Modes OGN: Download..."; |
| 1287 |
|
update_db::download('http://ddb.glidernet.org/download/',$tmp_dir.'ogn.csv'); |
| 1288 |
|
if (file_exists($tmp_dir.'ogn.csv')) { |
| 1289 |
|
if ($globalDebug) echo "Add to DB..."; |
| 1290 |
|
$error = update_db::retrieve_modes_ogn($tmp_dir.'ogn.csv'); |
| 1291 |
|
} else $error = "File ".$tmp_dir.'ogn.csv'." doesn't exist. Download failed."; |
| 1292 |
|
if ($error != '') { |
| 1293 |
|
return $error; |
| 1294 |
|
} elseif ($globalDebug) echo "Done\n"; |
| 1295 |
|
return ''; |
| 1296 |
|
} |
| 1297 |
|
|
| 1298 |
|
public static function update_owner() { |
| 1299 |
|
global $tmp_dir, $globalDebug; |