From 84bf9801cc00fcd012bfdda6f3193ba8280bee88 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 20 May 2024 08:04:24 +0200 Subject: [PATCH] Fix some whitespace and variables --- application/controllers/Lotw.php | 12 +++++++++--- application/views/hrdlog/export.php | 6 +++--- application/views/qrz/export.php | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index b3772a500..3a6bbac11 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -210,7 +210,7 @@ class Lotw extends CI_Controller { $station_profiles = $this->Stations->all_of_user($this->session->userdata('user_id')); $sync_user_id=$this->session->userdata('user_id'); } else { - echo "Manual syncing is diabled by configuration"; + echo "Manual syncing is disabled by configuration"; redirect('dashboard'); exit(); } @@ -696,7 +696,11 @@ class Lotw extends CI_Controller { public function import() { // Is only called via frontend. Cron uses "upload". within download the download is called $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'); exit(); } + if(!$this->user_model->authorize(2)) { + $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); + redirect('dashboard'); + exit(); + } if (!($this->config->item('disable_manual_lotw'))) { $data['page_title'] = "LoTW ADIF Import"; @@ -792,7 +796,9 @@ class Lotw extends CI_Controller { } } } else { - $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); exit(); + $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); + redirect('dashboard'); + exit(); } } // end function diff --git a/application/views/hrdlog/export.php b/application/views/hrdlog/export.php index 11e107f12..f7d5fc37e 100644 --- a/application/views/hrdlog/export.php +++ b/application/views/hrdlog/export.php @@ -21,8 +21,8 @@

Here you can see all QSOs which have not been previously uploaded to a HRDLog logbook.

You need to set a HRDLog Logbook API Code in your station profile. Only station profiles with an API Key set are displayed.

-

The Code can be demanded at http://www.hrdlog.net/EditUser.aspx

- config->item('disable_manual_eqsl'))) { echo '

Warning This might take a while as QSO uploads are processed sequentially.

'; } ?> +

The Code can be requested at http://www.hrdlog.net/EditUser.aspx

+ config->item('disable_manual_hrdlog'))) { echo '

Warning This might take a while as QSO uploads are processed sequentially.

'; } ?> result()) { @@ -46,7 +46,7 @@ echo '' . $station->modcount . ''; echo '' . $station->notcount . ''; echo '' . $station->totcount . ''; - if (!($this->config->item('disable_manual_eqsl'))) { + if (!($this->config->item('disable_manual_hrdlog'))) { echo ''; } else { echo ' '; diff --git a/application/views/qrz/export.php b/application/views/qrz/export.php index 06fef5246..87bc481f1 100644 --- a/application/views/qrz/export.php +++ b/application/views/qrz/export.php @@ -26,7 +26,7 @@

Here you can see all QSOs which have not been previously uploaded to a QRZ logbook.

You need to set a QRZ Logbook API key in your station profile. Only station profiles with an API Key set are displayed.

-

Warning This might take a while as QSO uploads are processed sequentially.

+ config->item('disable_manual_qrz'))) { echo '

Warning This might take a while as QSO uploads are processed sequentially.

'; } ?> result()) {