Merge pull request #110 from rmc47/master

Correct the lengths of the ADIF header fields on export
This commit is contained in:
Peter Goodhall 2012-12-16 05:06:41 -08:00
commit 0f4bd03951
2 changed files with 4 additions and 5 deletions

View File

@ -2,11 +2,10 @@
header("content-type: plain/text"); header("content-type: plain/text");
header('Content-Disposition: attachment; filename="export_log.adi"') header('Content-Disposition: attachment; filename="export_log.adi"')
?> ?>
<ADIF_VERS:3>2.2 <ADIF_VERS:3>2.2
<PROGRAMID:14><?php echo $this->config->item('app_name')."\n"; ?> <PROGRAMID:<?php echo strlen($this->config->item('app_name')); ?>><?php echo $this->config->item('app_name')."\n"; ?>
<PROGRAMVERSION:22>Version <?php echo $this->config->item('app_version')."\n"; ?> <PROGRAMVERSION:<?php echo strlen($this->config->item('app_version')); ?>>Version <?php echo $this->config->item('app_version')."\n"; ?>
<EOH> <EOH>
<?php foreach ($qsos->result() as $qso) { //print_r($qso);?> <?php foreach ($qsos->result() as $qso) { //print_r($qso);?>

View File

@ -1,6 +1,6 @@
<ADIF_VERS:3>2.2 <ADIF_VERS:3>2.2
<PROGRAMID:14><?php echo $this->config->item('app_name')."\n"; ?> <PROGRAMID:<?php echo strlen($this->config->item('app_name')); ?>><?php echo $this->config->item('app_name')."\n"; ?>
<PROGRAMVERSION:22>Version <?php echo $this->config->item('app_version')."\n"; ?> <PROGRAMVERSION:<?php echo strlen($this->config->item('app_version')); ?>>Version <?php echo $this->config->item('app_version')."\n"; ?>
<EOH> <EOH>
<?php foreach ($qsos->result() as $qso) { //print_r($qso);?> <?php foreach ($qsos->result() as $qso) { //print_r($qso);?>