|
@@ 1162-1174 (lines=13) @@
|
| 1159 |
|
return ''; |
| 1160 |
|
} |
| 1161 |
|
|
| 1162 |
|
public static function update_ModeS_flarm() { |
| 1163 |
|
global $tmp_dir, $globalDebug; |
| 1164 |
|
if ($globalDebug) echo "Modes Flarmnet: Download..."; |
| 1165 |
|
update_db::download('http://flarmnet.org/files/data.fln',$tmp_dir.'data.fln'); |
| 1166 |
|
if (file_exists($tmp_dir.'data.fln')) { |
| 1167 |
|
if ($globalDebug) echo "Add to DB..."; |
| 1168 |
|
$error = update_db::retrieve_modes_flarmnet($tmp_dir.'data.fln'); |
| 1169 |
|
} else $error = "File ".$tmp_dir.'data.fln'." doesn't exist. Download failed."; |
| 1170 |
|
if ($error != '') { |
| 1171 |
|
return $error; |
| 1172 |
|
} elseif ($globalDebug) echo "Done\n"; |
| 1173 |
|
return ''; |
| 1174 |
|
} |
| 1175 |
|
|
| 1176 |
|
public static function update_ModeS_ogn() { |
| 1177 |
|
global $tmp_dir, $globalDebug; |
|
@@ 1176-1188 (lines=13) @@
|
| 1173 |
|
return ''; |
| 1174 |
|
} |
| 1175 |
|
|
| 1176 |
|
public static function update_ModeS_ogn() { |
| 1177 |
|
global $tmp_dir, $globalDebug; |
| 1178 |
|
if ($globalDebug) echo "Modes OGN: Download..."; |
| 1179 |
|
update_db::download('http://ddb.glidernet.org/download/',$tmp_dir.'ogn.csv'); |
| 1180 |
|
if (file_exists($tmp_dir.'ogn.csv')) { |
| 1181 |
|
if ($globalDebug) echo "Add to DB..."; |
| 1182 |
|
$error = update_db::retrieve_modes_ogn($tmp_dir.'ogn.csv'); |
| 1183 |
|
} else $error = "File ".$tmp_dir.'ogn.csv'." doesn't exist. Download failed."; |
| 1184 |
|
if ($error != '') { |
| 1185 |
|
return $error; |
| 1186 |
|
} elseif ($globalDebug) echo "Done\n"; |
| 1187 |
|
return ''; |
| 1188 |
|
} |
| 1189 |
|
|
| 1190 |
|
public static function update_owner() { |
| 1191 |
|
global $tmp_dir, $globalDebug; |