mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Check for valid downloaded LotW status report and report errors
appropriately
This commit is contained in:
@@ -650,6 +650,9 @@ class Lotw extends CI_Controller {
|
||||
return "Temporary download directory ".dirname($file)." is not writable. Aborting!";
|
||||
}
|
||||
file_put_contents($file, file_get_contents($lotw_url));
|
||||
if (file_get_contents($file, false, null, 0, 39) != "ARRL Logbook of the World Status Report") {
|
||||
return "LotW downloading failed either due to it being down or incorrect logins.";
|
||||
}
|
||||
|
||||
ini_set('memory_limit', '-1');
|
||||
$results = $this->loadFromFile($file, false);
|
||||
|
||||
Reference in New Issue
Block a user