diff --git a/install/class.update_db.php b/install/class.update_db.php index 8b6df839..a5efc6b3 100644 --- a/install/class.update_db.php +++ b/install/class.update_db.php @@ -2817,11 +2817,11 @@ public static function update_tle() { public static function update_ucsdb() { global $tmp_dir, $globalDebug; if ($globalDebug) echo "Download UCS DB : Download..."; - update_db::download('https://s3.amazonaws.com/ucs-documents/nuclear-weapons/sat-database/9-1-17-update/UCS_Satellite_Database_officialname_9-1-2017.txt',$tmp_dir.'UCS_Satellite_Database_officialname_9-1-2017.txt'); - if (file_exists($tmp_dir.'UCS_Satellite_Database_officialname_1-1-17.txt')) { + update_db::download('https://s3.amazonaws.com/ucs-documents/nuclear-weapons/sat-database/8-10-18-update/UCS_Satellite_Database_officialname_5-1-2018.txt',$tmp_dir.'UCS_Satellite_Database_officialname_9-1-2017.txt'); + if (file_exists($tmp_dir.'UCS_Satellite_Database_officialname_5-1-2018.txt')) { if ($globalDebug) echo "Add to DB..."; - $error = update_db::satellite_ucsdb($tmp_dir.'UCS_Satellite_Database_officialname_9-1-2017.txt'); - } else $error = "File ".$tmp_dir.'UCS_Satellite_Database_officialname_9-1-2017.txt'." doesn't exist. Download failed."; + $error = update_db::satellite_ucsdb($tmp_dir.'UCS_Satellite_Database_officialname_5-1-2018.txt'); + } else $error = "File ".$tmp_dir.'UCS_Satellite_Database_officialname_5-1-2018.txt'." doesn't exist. Download failed."; if ($error != '') { echo $error."\n"; } elseif ($globalDebug) echo "Done\n";