diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index e70678b8..34e4b5b3 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -108,16 +108,16 @@ class eqsl extends CI_Controller { if ($this->input->post('eqslimport') == 'fetch') { - echo "import from clublog ADIF"; + echo "import from clublog ADIF
"; $file = $config['upload_path'] . 'eqslreport_download.adi'; - echo "Download File: ".$file; + echo "
Download File: ".$file."
"; // Get credentials for eQSL $query = $this->user_model->get_by_id($this->session->userdata('user_id')); $q = $query->row(); $data['user_eqsl_name'] = $q->user_eqsl_name; $data['user_eqsl_password'] = $q->user_eqsl_password; - echo "Username".$data['user_eqsl_name']; + echo "
Username".$data['user_eqsl_name']."
"; // Get URL for downloading the eqsl.cc inbox $query = $query = $this->db->query('SELECT eqsl_download_url FROM config'); @@ -129,7 +129,9 @@ class eqsl extends CI_Controller { { $this->session->set_flashdata('warning', 'You have not defined your eQSL.cc credentials!'); redirect('eqsl/import'); } - + + $this->load->model('stations'); + $active_station_info = $station_profile->row(); // Query the logbook to determine when the last LoTW confirmation was $eqsl_last_qsl_date = $this->logbook_model->eqsl_last_qsl_rcvd_date(); @@ -139,6 +141,7 @@ class eqsl extends CI_Controller { $eqsl_url .= "&Password=" . $data['user_eqsl_password']; $eqsl_url .= "&RcvdSince=" . $eqsl_last_qsl_date; + $eqsl_url .= "&QTHNickname=" . $active_station_info['eqslqthnickname']; // Pull back only confirmations $eqsl_url .= "&ConfirmedOnly=1";