diff --git a/application/controllers/eqsl.php b/application/controllers/eqsl.php new file mode 100644 index 000000000..9fa768f76 --- /dev/null +++ b/application/controllers/eqsl.php @@ -0,0 +1,295 @@ +load->helper(array('form', 'url')); + + $this->load->model('user_model'); + if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } + } + + private function loadFromFile($filepath) + { + // Figure out how we should be marking QSLs confirmed via eQSL + $query = $query = $this->db->query('SELECT eqsl_rcvd_mark FROM config'); + $q = $query->row(); + $config['eqsl_rcvd_mark'] = $q->eqsl_rcvd_mark; + + ini_set('memory_limit', '-1'); + set_time_limit(0); + + $this->load->library('adif_parser'); + + $this->adif_parser->load_from_file($filepath); + + $this->adif_parser->initialize(); + + $table = "
| ".$time_on." | "; + $table .= "".$record['call']." | "; + $table .= "".$record['mode']." | "; + $table .= "".$record['qsl_rcvd']." | "; + $table .= "".$qsl_date." | "; + $table .= "QSO Record: ".$status." | "; + $table .= "eQSL Record: ".$lotw_status." | "; + $table .= "
| Upload a file | +
+ Upload the Exported ADIF file from eQSL from the Download Inbox page, to mark QSOs as confirmed on eQSL. +Important Log files must have the file type .adi + + |
+
| Pull eQSL data for me | +
+ Cloudlog will use the eQSL username an password stored in your user profile to download confirmations from eQSL for you. We will only download confirmations received since your last eQSL confirmed QSO. + |
+