diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php
index 600654fd..e5fd4820 100644
--- a/application/controllers/Adif.php
+++ b/application/controllers/Adif.php
@@ -110,8 +110,6 @@ class adif extends CI_Controller {
$data['qsos'] = $this->adif_data->export_custom($this->input->post('from'), $this->input->post('to'));
- //$this->load->view('adif/import', $data);
-
foreach ($data['qsos']->result() as $qso)
{
$this->adif_data->mark_lotw_sent($qso->COL_PRIMARY_KEY);
@@ -120,6 +118,24 @@ class adif extends CI_Controller {
$this->load->view('adif/mark_lotw', $data);
}
+ public function mark_qrz() {
+ // Set memory limit to unlimited to allow heavy usage
+ ini_set('memory_limit', '-1');
+
+ $this->load->model('adif_data');
+
+ $data['qsos'] = $this->adif_data->export_custom($this->input->post('from'), $this->input->post('to'));
+
+ $this->load->model('logbook_model');
+
+ foreach ($data['qsos']->result() as $qso)
+ {
+ $this->logbook_model->mark_qrz_qsos_sent($qso->COL_PRIMARY_KEY);
+ }
+
+ $this->load->view('adif/mark_qrz', $data);
+ }
+
public function export_lotw()
{
// Set memory limit to unlimited to allow heavy usage
diff --git a/application/views/adif/import.php b/application/views/adif/import.php
index 7f56d40e..0a2302af 100644
--- a/application/views/adif/import.php
+++ b/application/views/adif/import.php
@@ -119,31 +119,7 @@
-
Warning If a date range is not selected then all QSOs will be marked!
- -Warning If a date range is not selected then all QSOs will be marked!
+ +Warning If a date range is not selected then all QSOs will be marked!
+ +The QSOs are marked as exported to QRZ Logbook.
+