diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index ecd1c90b1..ee9a42fbe 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -664,7 +664,7 @@ class Lotw extends CI_Controller { } $config['upload_path'] = './uploads/'; - $file = $config['upload_path'] . 'lotwreport_download.adi'; + $file = $config['upload_path'] . 'lotwreport_download_'.$sync_user_id.'_auto.adi'; if (file_exists($file) && ! is_writable($file)) { $result = "Temporary download file ".$file." is not writable. Aborting!"; continue; @@ -736,7 +736,7 @@ class Lotw extends CI_Controller { $this->load->model('logbook_model'); if (($this->input->post('lotwimport') == 'fetch') && (!($this->config->item('disable_manual_lotw')))) { - $file = $config['upload_path'] . 'lotwreport_download.adi'; + $file = $config['upload_path'] . 'lotwreport_download_'.$this->session->userdata('user_id').'.adi'; // Get credentials for LoTW $query = $this->user_model->get_by_id($this->session->userdata('user_id')); diff --git a/application/controllers/Qrz.php b/application/controllers/Qrz.php index ea44f343f..0b5a46c1d 100644 --- a/application/controllers/Qrz.php +++ b/application/controllers/Qrz.php @@ -345,7 +345,7 @@ class Qrz extends CI_Controller { function mass_download_qsos($qrz_api_key = '', $lastqrz = '1900-01-01', $station_ids = '', $trusted = false) { $config['upload_path'] = './uploads/'; - $file = $config['upload_path'] . 'qrzcom_download_report.adi'; + $file = $config['upload_path'] . 'qrzcom_download_report_'.md5($qrz_api_key).'.adi'; if (file_exists($file) && ! is_writable($file)) { $result = "Temporary download file ".$file." is not writable. Aborting!"; return false;