From 027b9287e3ce0741e6781dbc5d491e6e5a9ee2b0 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Sat, 18 Aug 2018 09:26:52 +0200 Subject: [PATCH] Update UCS sat DB --- install/class.update_db.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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";