diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php
index b8464d8f..99c624f3 100644
--- a/application/controllers/Adif.php
+++ b/application/controllers/Adif.php
@@ -165,6 +165,7 @@ class adif extends CI_Controller {
$data['active_station_info'] = $station_profile->row();
$data['page_title'] = "ADIF Import";
+ $data['tab'] = "adif";
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'adi|ADI|adif|ADIF';
@@ -177,7 +178,7 @@ class adif extends CI_Controller {
$data['max_upload'] = ini_get('upload_max_filesize');
$this->load->view('interface_assets/header', $data);
- $this->load->view('adif/import');
+ $this->load->view('adif/import', $data);
$this->load->view('interface_assets/footer');
} else {
if ($this->stations->check_station_is_accessible($this->input->post('station_profile'))) {
@@ -221,6 +222,67 @@ class adif extends CI_Controller {
}
}
+
+ public function dcl() {
+ $this->load->model('stations');
+ $data['station_profile'] = $this->stations->all_of_user();
+
+ $data['page_title'] = "DCL Import";
+ $data['tab'] = "dcl";
+
+ $config['upload_path'] = './uploads/';
+ $config['allowed_types'] = 'adi|ADI|adif|ADIF';
+
+ $this->load->library('upload', $config);
+
+ if ( ! $this->upload->do_upload()) {
+ $data['error'] = $this->upload->display_errors();
+
+ $data['max_upload'] = ini_get('upload_max_filesize');
+
+ $this->load->view('interface_assets/header', $data);
+ $this->load->view('adif/import', $data);
+ $this->load->view('interface_assets/footer');
+ } else {
+ $data = array('upload_data' => $this->upload->data());
+
+ ini_set('memory_limit', '-1');
+ set_time_limit(0);
+
+ $this->load->model('logbook_model');
+
+ $this->load->library('adif_parser');
+
+ $this->adif_parser->load_from_file('./uploads/'.$data['upload_data']['file_name']);
+
+ $this->adif_parser->initialize();
+ $error_count = array(0, 0);
+ $custom_errors = "";
+ while($record = $this->adif_parser->get_record())
+ {
+ if(count($record) == 0) {
+ break;
+ };
+
+ $dok_result = $this->logbook_model->update_dok($record, $this->input->post('ignoreAmbiguous'), $this->input->post('onlyConfirmed'), $this->input->post('overwriteDok'));
+ if (!empty($dok_result)) {
+ if ($dok_result[0] != 0) {
+ $custom_errors .= $dok_result[1]."
";
+ $error_count[1]++;
+ } else {
+ $error_count[0]++;
+ }
+ }
+ };
+ unlink('./uploads/'.$data['upload_data']['file_name']);
+ $data['dcl_error_count'] = $error_count;
+ $data['dcl_errors'] = $custom_errors;
+ $data['page_title'] = "DCL Data Imported";
+ $this->load->view('interface_assets/header', $data);
+ $this->load->view('adif/dcl_success');
+ $this->load->view('interface_assets/footer');
+ }
+ }
}
/* End of file adif.php */
diff --git a/application/language/bulgarian/adif_lang.php b/application/language/bulgarian/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/bulgarian/adif_lang.php
+++ b/application/language/bulgarian/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/chinese_simplified/adif_lang.php b/application/language/chinese_simplified/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/chinese_simplified/adif_lang.php
+++ b/application/language/chinese_simplified/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/czech/adif_lang.php b/application/language/czech/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/czech/adif_lang.php
+++ b/application/language/czech/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/dutch/adif_lang.php b/application/language/dutch/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/dutch/adif_lang.php
+++ b/application/language/dutch/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/english/adif_lang.php b/application/language/english/adif_lang.php
index e0e1e4ab..2cf537b8 100644
--- a/application/language/english/adif_lang.php
+++ b/application/language/english/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different).";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched.";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/finnish/adif_lang.php b/application/language/finnish/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/finnish/adif_lang.php
+++ b/application/language/finnish/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/french/adif_lang.php b/application/language/french/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/french/adif_lang.php
+++ b/application/language/french/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/german/adif_lang.php b/application/language/german/adif_lang.php
index 9297c724..c40cdfa9 100644
--- a/application/language/german/adif_lang.php
+++ b/application/language/german/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSO's markiert";
$lang['adif_yay_its_done'] = "Yay, geschafft!";
$lang['adif_qso_lotw_marked_confirm'] = "Die QSO wurden als 'zu LoTW hochgeladen' markiert";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Gehe zum";
+$lang['adif_dcl_text_post'] = "und exportiere dein Logbuch mit bestätigten DOKs. Um den Prozess zu beschleunigen, kannst du QSOs ausschließlich mit DL-Stationen auswählen (indem du \"DL\" in die Präfixliste einträgst). Die heruntergeladene ADIF-Datei kannst du hier hochladen, um dein Logbuch mit DOK Informationen zu aktualisieren.";
+
+$lang['only_confirmed_qsos'] = "Importiere nur DOK Informationen von QSOs, die auf DCL bestätigt sind.";
+$lang['only_confirmed_qsos_hint'] = "Deaktiviere diese Option, um auch DOK Infos von QSOS zu importieren, die auf DCL nicht bestätig sind.";
+
+$lang['overwrite_by_dcl'] = "Überschreibe existierende DOK im Logbuch durch DCL (wenn unterschiedlich).";
+$lang['overwrite_by_dcl_hint'] = "Wenn aktiviert, wird Cloudlog den existierenden DOK mit dem DOK aus dem DCL überschreiben.";
+
+$lang['ignore_ambiguous'] = "Ignoriere QSOs, die nicht eindeutig zugeordnet werden können.";
+$lang['ignore_ambiguous_hint'] = "Wenn deaktiviert, werden auch Infos zu QSOs angezeigt, die im Logbuch nicht gefunden werden konnten.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Duplikate wurden übersprungen.";
$lang['adif_import_errors'] = "ADIF Fehler";
$lang['adif_import_errors_hint'] = "Es gibt ADIF Fehler. Die QSO wurden hinzugefügt, jedoch wurden die fehlerhaften Felder nicht ausgefüllt.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Ergebnisse des DCL DOK Updates";
+$lang['dcl_info_updated'] = "QSOs wurden mit der DOK Information aus dem DCL aktualisiert.";
+$lang['dcl_qsos_updated'] = "Aktualisierte QSOs:";
+$lang['dcl_qsos_ignored'] = "Ignorierte QSOs:";
+$lang['dcl_no_qsos_updated'] = "Keine QSOs aktualisiert.";
+$lang['dcl_dok_errors'] = "DOK Fehler";
+$lang['dcl_dok_errors_details'] = "Die DOK Informationen im Logbuch weichen von denen im DCL ab:";
diff --git a/application/language/greek/adif_lang.php b/application/language/greek/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/greek/adif_lang.php
+++ b/application/language/greek/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/italian/adif_lang.php b/application/language/italian/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/italian/adif_lang.php
+++ b/application/language/italian/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/polish/adif_lang.php b/application/language/polish/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/polish/adif_lang.php
+++ b/application/language/polish/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/russian/adif_lang.php b/application/language/russian/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/russian/adif_lang.php
+++ b/application/language/russian/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/spanish/adif_lang.php b/application/language/spanish/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/spanish/adif_lang.php
+++ b/application/language/spanish/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/swedish/adif_lang.php b/application/language/swedish/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/swedish/adif_lang.php
+++ b/application/language/swedish/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/language/turkish/adif_lang.php b/application/language/turkish/adif_lang.php
index e0e1e4ab..d8ddb51a 100644
--- a/application/language/turkish/adif_lang.php
+++ b/application/language/turkish/adif_lang.php
@@ -12,6 +12,7 @@ ________________________________________________________________________________
$lang['adif_import'] = "ADIF Import";
$lang['adif_export'] = "ADIF Export";
// $lang['lotw_title'] --> application/language/english/lotw_lang.php
+$lang['darc_dcl'] = "DARC DCL";
/*
@@ -81,6 +82,22 @@ $lang['adif_qso_marked'] = "QSOs marked";
$lang['adif_yay_its_done'] = "Yay, its done!";
$lang['adif_qso_lotw_marked_confirm'] = "The QSOs are marked as exported to LoTW.";
+/*
+___________________________________________________________________________________________
+DARC DCL
+___________________________________________________________________________________________
+*/
+$lang['adif_dcl_text_pre'] = "Go to";
+$lang['adif_dcl_text_post'] = "and export your logbook with confirmed DOKs. To speed up the process you can select only DL QSOs to download (i.e. put \"DL\" into Prefix List). The downloaded ADIF file can be uploaded here in order to update QSOs with DOK info.";
+
+$lang['only_confirmed_qsos'] = "Only import DOK data from QSOs confirmed on DCL.";
+$lang['only_confirmed_qsos_hint'] = "Uncheck if you also want to update DOK with data from unconfirmed QSOs in DCL.";
+
+$lang['overwrite_by_dcl'] = "Overwrite exisiting DOK in log by DCL (if different)";
+$lang['overwrite_by_dcl_hint'] = "If checked Cloudlog will forcibly overwrite existing DOK with DOK from DCL log.";
+
+$lang['ignore_ambiguous'] = "Ignore QSOs that cannot be matched";
+$lang['ignore_ambiguous_hint'] = "If unchecked information about QSO which could not be found in Cloudlog will be displayed.";
/*
___________________________________________________________________________________________
@@ -97,3 +114,17 @@ $lang['adif_import_dupes_skipped'] = " Dupes were skipped.";
$lang['adif_import_errors'] = "ADIF Errors";
$lang['adif_import_errors_hint'] = "You have ADIF errors, the QSOs have still been added but these fields have not been populated.";
+
+/*
+___________________________________________________________________________________________
+DCL Success
+___________________________________________________________________________________________
+*/
+
+$lang['dcl_results'] = "Results of DCL DOK Update";
+$lang['dcl_info_updated'] = "DCL information for DOKs has been updated.";
+$lang['dcl_qsos_updated'] = "QSOs updated:";
+$lang['dcl_qsos_ignored'] = "QSOs ignored:";
+$lang['dcl_no_qsos_updated'] = "No QSOs updated.";
+$lang['dcl_dok_errors'] = "DOK Errors";
+$lang['dcl_dok_errors_details'] = "There is different data for DOK in your log compared to DCL:";
diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php
index 314a5da4..72d804d6 100755
--- a/application/models/Logbook_model.php
+++ b/application/models/Logbook_model.php
@@ -3474,6 +3474,97 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
return $my_error;
}
+ function update_dok($record, $ignoreAmbiguous, $onlyConfirmed, $overwriteDok) {
+ $CI =& get_instance();
+ $CI->load->model('logbooks_model');
+ $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
+
+ if(isset($record['call'])) {
+ $call = strtoupper($record['call']);
+ } else {
+ return array(3, 'Callsign not found');
+ }
+
+ // Join date+time
+ $time_on = date('Y-m-d', strtotime($record['qso_date'])) ." ".date('H:i', strtotime($record['time_on']));
+
+ // Store Band
+ if(isset($record['band'])) {
+ $band = strtolower($record['band']);
+ } else {
+ if (isset($record['freq'])){
+ if($freq != "0") {
+ $band = $CI->frequency->GetBand($freq);
+ }
+ }
+ }
+
+ if (isset($record['mode'])) {
+ $mode = $record['mode'];
+ } else {
+ $mode = '';
+ }
+
+ if (isset($record['darc_dok'])) {
+ $darc_dok = $record['darc_dok'];
+ } else {
+ $darc_dok = '';
+ }
+
+ if ($darc_dok != '') {
+ $this->db->select('COL_PRIMARY_KEY, COL_DARC_DOK');
+ $this->db->where('COL_CALL', $call);
+ $this->db->like('COL_TIME_ON', $time_on, 'after');
+ $this->db->where('COL_BAND', $band);
+ $this->db->where('COL_MODE', $mode);
+ $this->db->where_in('station_id', $logbooks_locations_array);
+ $check = $this->db->get($this->config->item('table_name'));
+ if ($check->num_rows() != 1) {
+ if ($ignoreAmbiguous == '1') {
+ return array();
+ } else {
+ return array(2, $result['message'] = $time_on." ".$call." ".$band." ".$mode." QSO could not be matched.");
+ }
+ } else {
+ if ($check->row()->COL_DARC_DOK != $darc_dok) {
+ $dcl_cnfm = array('c', 'm', 'n', 'o', 'i');
+ // Ref https://confluence.darc.de/pages/viewpage.action?pageId=21037270
+ if ($onlyConfirmed == '1') {
+ if (in_array($record['app_dcl_status'], $dcl_cnfm)) {
+ if ($check->row()->COL_DARC_DOK == '' || $overwriteDok == '1') {
+ $this->set_dok($check->row()->COL_PRIMARY_KEY, $darc_dok);
+ return array(0, '');
+ } else {
+ return array(1, $result['message'] = $time_on." ".$call." ".$band." ".$mode.": Log -> ".($check->row()->COL_DARC_DOK == '' ? 'n/a' : $check->row()->COL_DARC_DOK)." DCL -> ".$darc_dok.". DCL QSL Status: ".$record['app_dcl_status'].".");
+ }
+
+ } else {
+ return array(1, $result['message'] = $time_on." ".$call." ".$band." ".$mode.": Log -> ".($check->row()->COL_DARC_DOK == '' ? 'n/a' : $check->row()->COL_DARC_DOK)." DCL -> ".$darc_dok.". DCL QSL Status: ".$record['app_dcl_status'].".");
+ }
+ } else {
+ if ($check->row()->COL_DARC_DOK == '' || $overwriteDok == '1') {
+ $this->set_dok($check->row()->COL_PRIMARY_KEY, $darc_dok);
+ return array(0, '');
+ } else {
+ return array(1, $result['message'] = $time_on." ".$call." ".$band." ".$mode.": Log -> ".($check->row()->COL_DARC_DOK == '' ? 'n/a' : $check->row()->COL_DARC_DOK)." DCL -> ".$darc_dok.". DCL QSL Status: ".$record['app_dcl_status'].".");
+ }
+ }
+ }
+ }
+ }
+
+ }
+
+ function set_dok($key, $dok) {
+ $data = array(
+ 'COL_DARC_DOK' => $dok,
+ );
+
+ $this->db->where(array('COL_PRIMARY_KEY' => $key));
+ $this->db->update($this->config->item('table_name'), $data);
+ return;
+ }
+
function get_main_mode_from_mode($mode) {
return ($this->get_main_mode_if_submode($mode) == null ? $mode : $this->get_main_mode_if_submode($mode));
}
diff --git a/application/views/adif/dcl_success.php b/application/views/adif/dcl_success.php
new file mode 100644
index 00000000..090acd72
--- /dev/null
+++ b/application/views/adif/dcl_success.php
@@ -0,0 +1,33 @@
+
.
+.
+ + ++ + +
+ + + +