mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Use central function to generate ADIF-Header
This commit is contained in:
@@ -103,11 +103,7 @@ class adif extends CI_Controller {
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
|
||||
// Output ADIF header // No chance to use exportall-view any longer, because of chunking logic
|
||||
echo "Wavelog ADIF export\n";
|
||||
echo "<ADIF_VER:5>3.1.6\n";
|
||||
echo "<PROGRAMID:".strlen($this->config->item('app_name')).">".$this->config->item('app_name')."\r\n";
|
||||
echo "<PROGRAMVERSION:".strlen($this->optionslib->get_option('version')).">".$this->optionslib->get_option('version')."\r\n";
|
||||
echo "<EOH>\n\n";
|
||||
echo $this->adifhelper->getAdifHeader($this->config->item('app_name'),$this->optionslib->get_option('version'));
|
||||
|
||||
// Stream QSOs in 5K chunks
|
||||
$offset = 0;
|
||||
@@ -204,12 +200,7 @@ class adif extends CI_Controller {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
|
||||
// Output ADIF header // No chance to use exportall-view any longer, because of chunking logic
|
||||
echo "Wavelog ADIF export\n";
|
||||
echo "<ADIF_VER:5>3.1.6\n";
|
||||
echo "<PROGRAMID:".strlen($this->config->item('app_name')).">".$this->config->item('app_name')."\r\n";
|
||||
echo "<PROGRAMVERSION:".strlen($this->optionslib->get_option('version')).">".$this->optionslib->get_option('version')."\r\n";
|
||||
echo "<EOH>\n\n";
|
||||
echo $this->adifhelper->getAdifHeader($this->config->item('app_name'),$this->optionslib->get_option('version'));
|
||||
|
||||
// Collect QSO IDs for LoTW marking (since we can't access all at once)
|
||||
$qso_ids_for_lotw = [];
|
||||
|
||||
Reference in New Issue
Block a user