Skip to content

Commit

Permalink
Update UCS sat DB
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Aug 18, 2018
1 parent b633096 commit 027b928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/class.update_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 027b928

Please sign in to comment.