'; break;
diff --git a/application/controllers/Logbookadvanced.php b/application/controllers/Logbookadvanced.php
index 5be9b787f..41fc9590f 100644
--- a/application/controllers/Logbookadvanced.php
+++ b/application/controllers/Logbookadvanced.php
@@ -87,6 +87,8 @@ class Logbookadvanced extends CI_Controller {
'assets/js/moment.min.js',
'assets/js/datetime-moment.js',
'assets/js/sections/logbookadvanced.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced.js")),
+ 'assets/js/sections/logbookadvanced_edit.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced_edit.js")),
+ 'assets/js/sections/logbookadvanced_map.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced_map.js")),
'assets/js/sections/cqmap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap_geojson.js")),
'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")),
'assets/js/leaflet/L.Terminator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/L.Terminator.js")),
@@ -495,4 +497,34 @@ class Logbookadvanced extends CI_Controller {
$this->user_options_model->set_option('LogbookAdvancedMap', 'ituzones_layer', array('boolean' => xss_clean($this->input->post('ituzone_layer'))));
$this->user_options_model->set_option('LogbookAdvancedMap', 'nightshadow_layer', array('boolean' => xss_clean($this->input->post('nightshadow_layer'))));
}
+
+ public function editDialog() {
+ $this->load->view('logbookadvanced/edit');
+ }
+
+ public function saveBatchEditQsos() {
+ $ids = xss_clean($this->input->post('ids'));
+ $column = xss_clean($this->input->post('column'));
+ $value = xss_clean($this->input->post('value'));
+
+ $this->load->model('logbookadvanced_model');
+ $this->logbookadvanced_model->saveEditedQsos($ids, $column, $value);
+
+ $data = $this->logbookadvanced_model->getQsosForAdif($ids, $this->session->userdata('user_id'));
+
+ $results = $data->result('array');
+
+ $qsos = [];
+ foreach ($results as $data) {
+ $qsos[] = new QSO($data);
+ }
+
+ $q = [];
+ foreach ($qsos as $qso) {
+ $q[] = $qso->toArray();
+ }
+
+ header("Content-Type: application/json");
+ print json_encode($q);
+ }
}
diff --git a/application/controllers/Sattimers.php b/application/controllers/Sattimers.php
index bdcfdcfd7..66332e392 100644
--- a/application/controllers/Sattimers.php
+++ b/application/controllers/Sattimers.php
@@ -9,41 +9,50 @@ class Sattimers extends CI_Controller {
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
}
- public function index() {
- $this->load->model('stations');
- $footerData = [];
- $footerData['scripts'] = [
- 'assets/js/sections/sattimers.js?'
- ];
- $url = 'https://www.df2et.de/tevel/api2.php?grid='.strtoupper($this->stations->find_gridsquare());
- $json = file_get_contents($url);
- $data['activations'] = json_decode($json, true)['data'];
- $data['gridsquare'] = strtoupper($this->stations->find_gridsquare());
+ public function index() {
+ $this->load->model('stations');
+ $footerData = [];
+ $footerData['scripts'] = [
+ 'assets/js/sections/sattimers.js?'
+ ];
- $data['page_title'] = "Satellite Timers";
+ $url = 'https://www.df2et.de/tevel/api2.php?grid='.strtoupper($this->stations->find_gridsquare());
- $CI =& get_instance();
- if($CI->session->userdata('user_date_format')) {
- $data['custom_date_format'] = $CI->session->userdata('user_date_format');
- } else {
- $data['custom_date_format'] = $CI->config->item('qso_date_format');
- }
+ $this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
+ if (!$RawData = $this->cache->get('SatTimers'.strtoupper($this->stations->find_gridsquare()))) {
+ $RawData = file_get_contents($url, true);
+ $this->cache->save('SatTimers'.strtoupper($this->stations->find_gridsquare()), $RawData, (60*1));
+ }
- switch ($data['custom_date_format']) {
- case "d/m/y": $data['custom_date_format'] = 'DD/MM/YY'; break;
- case "d/m/Y": $data['custom_date_format'] = 'DD/MM/YYYY'; break;
- case "m/d/y": $data['custom_date_format'] = 'MM/DD/YY'; break;
- case "m/d/Y": $data['custom_date_format'] = 'MM/DD/YYYY'; break;
- case "d.m.Y": $data['custom_date_format'] = 'DD.MM.YYYY'; break;
- case "y/m/d": $data['custom_date_format'] = 'YY/MM/DD'; break;
- case "Y-m-d": $data['custom_date_format'] = 'YYYY-MM-DD'; break;
- case "M d, Y": $data['custom_date_format'] = 'MMM DD, YYYY'; break;
- case "M d, y": $data['custom_date_format'] = 'MMM DD, YY'; break;
- default: $data['custom_date_format'] = 'DD/MM/YYYY';
- }
+ $json = $RawData;
- $this->load->view('interface_assets/header', $data);
- $this->load->view('/sattimers/index', $data);
- $this->load->view('interface_assets/footer', $footerData);
- }
+ $data['activations'] = json_decode($json, true)['data'];
+ $data['gridsquare'] = strtoupper($this->stations->find_gridsquare());
+
+ $data['page_title'] = "Satellite Timers";
+
+ $CI =& get_instance();
+ if($CI->session->userdata('user_date_format')) {
+ $data['custom_date_format'] = $CI->session->userdata('user_date_format');
+ } else {
+ $data['custom_date_format'] = $CI->config->item('qso_date_format');
+ }
+
+ switch ($data['custom_date_format']) {
+ case "d/m/y": $data['custom_date_format'] = 'DD/MM/YY'; break;
+ case "d/m/Y": $data['custom_date_format'] = 'DD/MM/YYYY'; break;
+ case "m/d/y": $data['custom_date_format'] = 'MM/DD/YY'; break;
+ case "m/d/Y": $data['custom_date_format'] = 'MM/DD/YYYY'; break;
+ case "d.m.Y": $data['custom_date_format'] = 'DD.MM.YYYY'; break;
+ case "y/m/d": $data['custom_date_format'] = 'YY/MM/DD'; break;
+ case "Y-m-d": $data['custom_date_format'] = 'YYYY-MM-DD'; break;
+ case "M d, Y": $data['custom_date_format'] = 'MMM DD, YYYY'; break;
+ case "M d, y": $data['custom_date_format'] = 'MMM DD, YY'; break;
+ default: $data['custom_date_format'] = 'DD/MM/YYYY';
+ }
+
+ $this->load->view('interface_assets/header', $data);
+ $this->load->view('/sattimers/index', $data);
+ $this->load->view('interface_assets/footer', $footerData);
+ }
}
diff --git a/application/language/bulgarian/awards_lang.php b/application/language/bulgarian/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/bulgarian/awards_lang.php
+++ b/application/language/bulgarian/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/bulgarian/menu_lang.php b/application/language/bulgarian/menu_lang.php
index dc4755bf0..024cc5ea3 100644
--- a/application/language/bulgarian/menu_lang.php
+++ b/application/language/bulgarian/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/chinese_simplified/awards_lang.php b/application/language/chinese_simplified/awards_lang.php
index 2097c1d2f..b6b46fcc8 100644
--- a/application/language/chinese_simplified/awards_lang.php
+++ b/application/language/chinese_simplified/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "该奖项将颁发给任何能够再次
$lang['awards_ffma_description_ln4'] = "如需了解更多信息,您可以访问此链接:https://www.arrl.org/ffma";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/chinese_simplified/menu_lang.php b/application/language/chinese_simplified/menu_lang.php
index 548fb1a46..d84912b1b 100644
--- a/application/language/chinese_simplified/menu_lang.php
+++ b/application/language/chinese_simplified/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/czech/awards_lang.php b/application/language/czech/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/czech/awards_lang.php
+++ b/application/language/czech/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/czech/menu_lang.php b/application/language/czech/menu_lang.php
index 04069a5c4..587d5ba2b 100644
--- a/application/language/czech/menu_lang.php
+++ b/application/language/czech/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/dutch/awards_lang.php b/application/language/dutch/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/dutch/awards_lang.php
+++ b/application/language/dutch/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/dutch/menu_lang.php b/application/language/dutch/menu_lang.php
index 6f875bd91..62718d3e5 100644
--- a/application/language/dutch/menu_lang.php
+++ b/application/language/dutch/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/english/awards_lang.php b/application/language/english/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/english/awards_lang.php
+++ b/application/language/english/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/english/menu_lang.php b/application/language/english/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/english/menu_lang.php
+++ b/application/language/english/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/finnish/awards_lang.php b/application/language/finnish/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/finnish/awards_lang.php
+++ b/application/language/finnish/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/finnish/menu_lang.php b/application/language/finnish/menu_lang.php
index 4b7513cd3..6b6e3cc41 100644
--- a/application/language/finnish/menu_lang.php
+++ b/application/language/finnish/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/french/awards_lang.php b/application/language/french/awards_lang.php
index 764b82408..2cc16b38f 100644
--- a/application/language/french/awards_lang.php
+++ b/application/language/french/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/french/menu_lang.php b/application/language/french/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/french/menu_lang.php
+++ b/application/language/french/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/german/awards_lang.php b/application/language/german/awards_lang.php
index a6d340702..61269a00d 100644
--- a/application/language/german/awards_lang.php
+++ b/application/language/german/awards_lang.php
@@ -18,19 +18,19 @@ $lang['awards_cq_page_title'] = "Diplome - CQ Magazin WAZ";
/*
___________________________________________________________________________________________
-CQ -- Verwenden Sie alle 4 Textzeilen
+CQ -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_cq_description_ln1'] = "CQ Magazine WAZ Diplom";
$lang['awards_cq_description_ln2'] = "Das CQ Magazine befindet sich in den USA und ist eines der beliebtesten Amateurfunkmagazine der Welt. Das Magazin erschien erstmals im Januar 1945 und konzentriert sich auf Diplome und die praktischen Aspekte des Amateurfunks.";
$lang['awards_cq_description_ln3'] = "Der WAZ Award steht für 'Worked All Zones' und erfordert Kontakte zu allen 40 CQ-Zonen sowie die entsprechende QSL Bestätigung.";
-$lang['awards_cq_description_ln4'] = "Sie finden alle Informationen und Regeln auf der Website des CQ Magazine.";
+$lang['awards_cq_description_ln4'] = "Du findest alle Informationen und Regeln auf der Website des CQ Magazine.";
/*
___________________________________________________________________________________________
-DOK -- Verwenden Sie alle 4 Textzeilen
+DOK -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
@@ -42,91 +42,103 @@ $lang['awards_dok_description_ln4'] = "Diese Informationen findest du auf der 'How to Count Countries Worked, A New DX Scoring System' erstellt wurde.";
-$lang['awards_dxcc_description_ln3'] = "Sie finden alle Informationen zum DXCC Diplom auf der ARRL-Website.";
-$lang['awards_dxcc_description_ln4'] = "Wichtiger Hinweis: Im Laufe der Zeit haben sich die Kriterien für die DXCC-Liste geändert. Die Liste bleibt unverändert, bis eine Einheit die Kriterien nicht mehr erfüllt, woraufhin sie in die Gelöschte Liste verschoben wird. Sie finden gelöschte DXCC-Einheiten auch in den Listen in Wavelog. Beachten Sie, dass diese DXCC-Einheiten veraltet und nicht mehr gültig sind.";
+$lang['awards_dxcc_description_ln3'] = "Du findest alle Informationen zum DXCC Diplom auf der ARRL-Website.";
+$lang['awards_dxcc_description_ln4'] = "Wichtiger Hinweis: Im Laufe der Zeit haben sich die Kriterien für die DXCC-Liste geändert. Die Liste bleibt unverändert, bis eine Einheit die Kriterien nicht mehr erfüllt, woraufhin sie in die Gelöschte Liste verschoben wird. Du findest gelöschte DXCC-Einheiten auch in den Listen in Wavelog. Beachte, dass diese DXCC-Einheiten veraltet und nicht mehr gültig sind.";
/*
___________________________________________________________________________________________
-FFMA -- Verwenden Sie alle 4 Textzeilen
+FFMA -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_ffma_description_ln1'] = "Fred Fish Memorial Award";
$lang['awards_ffma_description_ln2'] = "Der Fred Fish Memorial Award wurde zu Ehren von Fred Fish, W5FF (SK), geschaffen, dem ersten Funkamateur, der alle 488 Maidenhead-Planquadrate in den 48 zusammenhängenden Bundesstaaten der USA auf 6 Metern gearbeitet und bestätigt hat.";
$lang['awards_ffma_description_ln3'] = "Der Preis wird an jeden Funkamateur verliehen, der die Leistung von W5FF nachahmen kann.";
-$lang['awards_ffma_description_ln4'] = "Für weitere Informationen können Sie diesen Link besuchen: https://www.arrl.org/ffma.";
+$lang['awards_ffma_description_ln4'] = "Für weitere Informationen kannst du diesen Link besuchen: https://www.arrl.org/ffma.";
/*
___________________________________________________________________________________________
-IOTA -- Verwenden Sie alle 4 Textzeilen
+H26 -- Verwende alle 4 Textzeilen
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "Die USKA (Union Schweizerischer Kurzwellen Amateure) stiftet zwei Auszeichnungen, den HELVETIA 26 (H26) Award und den SWITZERLAND Award, um Aktivitäten auf den Bändern zu fördern, indem sie Kontakte über möglichst viele Schweizer Kantone auf verschiedenen Bändern anregen.";
+$lang['awards_helvetia_description_ln3'] = "Diese Auszeichnungen gibt es in zwei Versionen: eine für HF-Bänder und eine für VHF-Bänder (einschließlich SHF und UHF). Gültige Verbindungen für diese Auszeichnungen datieren bis zum 1. Januar 1980 zurück.";
+$lang['awards_helvetia_description_ln4'] = "Für weitere Informationen besuche bitte diesen Link: https://www.uska.ch/contest/uska-diplome/.";
+
+
+/*
+___________________________________________________________________________________________
+IOTA -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_iota_description_ln1'] = "IOTA Diplome";
$lang['awards_iota_description_ln2'] = "IOTA ist ein aufregendes und innovatives Aktivitätsprogramm, das das Interesse von Tausenden von Funkamateuren weltweit geweckt hat. Es wurde 1964 gegründet und fördert Funkkontakte mit Stationen, die sich auf Inseln auf der ganzen Welt befinden, um die Erfahrung aller zu verbessern, die auf den Amateurfunkbändern aktiv sind. Um dies zu erreichen, nutzt es die weit verbreitete Mystik um Inseln.";
$lang['awards_iota_description_ln3'] = "Es wird von Islands On The Air (IOTA) Ltd (auch als IOTA Management bezeichnet) in Zusammenarbeit mit der Radio Society of Great Britain (RSGB) verwaltet. IOTA Management hat die Inseln der Welt in etwa 1200 'IOTA-Gruppen' unterteilt, von denen jede eine unterschiedliche Anzahl von 'counters' (z.dt. 'Zählern') hat, die qualifizierende Inseln sind. Diese Listen werden im IOTA-Verzeichnis und auf der IOTA-Website veröffentlicht. Das Ziel für den IOTA Island Chaser besteht darin, Funkkontakt mit mindestens einem Zähler in so vielen dieser Gruppen wie möglich aufzunehmen. Das Programm hat klare Regeln und fördert den freundlichen Wettbewerb unter den Verfolgern, indem es die Leistungen der Teilnehmer in einer Ehrenrolle und jährlichen Listen veröffentlicht und sie mit Zertifikaten und renommierten Diplomen auszeichnet.";
-$lang['awards_iota_description_ln4'] = "Sie finden diese Informationen auch auf der IOTA WORLD-Website.";
+$lang['awards_iota_description_ln4'] = "Du findest diese Informationen auch auf der IOTA WORLD-Website.";
/*
___________________________________________________________________________________________
-POTA -- Verwenden Sie alle 4 Textzeilen
+POTA -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_pota_description_ln1'] = "POTA Diplome";
$lang['awards_pota_description_ln2'] = "Parks on the Air® (POTA) startete Anfang 2017, als das 'National Parks on the Air' - Special Event des ARRL endete. Eine Gruppe von Freiwilligen wollte den Spaß über das einjährige Ereignis hinaus fortsetzen, und so wurde POTA geboren.";
$lang['awards_pota_description_ln3'] = "POTA funktioniert ähnlich wie SOTA, mit Aktivatoren und Jägern. Für die Diplome gibt es verschiedene Kategorien, die auf der Anzahl der Parks, geografischen Gebieten und mehr basieren.";
-$lang['awards_pota_description_ln4'] = "Für weitere Informationen zu den verfügbaren Diplome und Kategorien besuchen Sie bitte die Parks on the Air®-Website.";
+$lang['awards_pota_description_ln4'] = "Für weitere Informationen zu den verfügbaren Diplome und Kategorien besuche bitte die Parks on the Air®-Website.";
/*
___________________________________________________________________________________________
-SIG -- Verwenden Sie alle 4 Textzeilen
+SIG -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_sig_description_ln1'] = "SIG-Information";
$lang['awards_sig_description_ln2'] = "Die SIG- oder Signature-Kategorie ermöglicht die Verwendung beliebiger 'Diplom-Identifikationen' für Diplome, die nicht in Wavelog implementiert sind.";
$lang['awards_sig_description_ln3'] = "Der Grund dafür ist, dass das gängige ADIF-Format nur wenige dedizierte Felder für bestimmte Diplome bietet. SIG ermöglicht es dennoch, alle anderen Arten von Signaturmarkierungen zu verwenden und auszuwerten.";
-$lang['awards_sig_description_ln4'] = "Im QSO-Verarbeitung finden Sie zwei Felder: 'SIG' enthält die tatsächliche Markierung, die auch in der Auswertung der Auszeichnung sichtbar ist, und 'SIG INFO', das eine Beschreibung der Signatur enthält. Beide Felder sind frei anpassbar.";
+$lang['awards_sig_description_ln4'] = "Im QSO-Verarbeitung findest du zwei Felder: 'SIG' enthält die tatsächliche Markierung, die auch in der Auswertung der Auszeichnung sichtbar ist, und 'SIG INFO', das eine Beschreibung der Signatur enthält. Beide Felder sind frei anpassbar.";
/*
___________________________________________________________________________________________
-SOTA -- Verwenden Sie alle 4 Textzeilen
+SOTA -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_sota_description_ln1'] = "SOTA Awards";
$lang['awards_sota_description_ln2'] = "SOTA (Summits On The Air) ist ein Auszeichnungsschema für Funkamateure, das den portablen Betrieb in bergigen Gebieten fördert.";
$lang['awards_sota_description_ln3'] = "Es ist in fast hundert Ländern weltweit voll verfügbar. Jedes Land hat seine eigene Vereinigung, die die anerkannten SOTA-Gipfel innerhalb dieser Vereinigung definiert. Jeder Gipfel verdient den Aktivierenden und Verfolgenden eine Punktzahl, die sich auf die Höhe des Gipfels bezieht. Zertifikate sind für verschiedene Punktzahlen erhältlich und führen zu den renommierten Trophäen 'Mountain Goat' und 'Shack Sloth'. Eine Ehrenrolle für Aktivierende und Verfolgende wird in der SOTA-Online-Datenbank geführt.";
-$lang['awards_sota_description_ln4'] = "Für weitere Informationen besuchen Sie bitte: https://www.sota.org.uk/.";
+$lang['awards_sota_description_ln4'] = "Für weitere Informationen besuche bitte: https://www.sota.org.uk/.";
/*
___________________________________________________________________________________________
-US Counties -- Verwenden Sie alle 4 Textzeilen
+US Counties -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_counties_description_ln1'] = "US County Diplom";
-$lang['awards_counties_description_ln2'] = "Das US Counties Diplom (USA-CA) der Vereinigten Staaten von Amerika, gesponsert von CQ Magazine, wird für bestätigte Funkkontakte mit einer festgelegten Anzahl von US-Counties unter Regeln und Bedingungen verliehen, die Sie hier finden können.";
+$lang['awards_counties_description_ln2'] = "Das US Counties Diplom (USA-CA) der Vereinigten Staaten von Amerika, gesponsert von CQ Magazine, wird für bestätigte Funkkontakte mit einer festgelegten Anzahl von US-Counties unter Regeln und Bedingungen verliehen, die du hier findest.";
$lang['awards_counties_description_ln3'] = "USA-CA steht allen lizenzierten Funkamateuren weltweit zur Verfügung und wird an Einzelpersonen für alle gemachten County-Kontakte verliehen, unabhängig von den verwendeten Rufzeichen, Stationsorten oder Daten.";
$lang['awards_counties_description_ln4'] = "Spezielle USA-CA-Diplome stehen auch für SWLs auf der Grundlage des Gehörten zur Verfügung.";
/*
___________________________________________________________________________________________
-US Gridmaster -- Verwenden Sie alle 4 Textzeilen
+US Gridmaster -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
@@ -138,7 +150,7 @@ $lang['awards_us_gridmaster_description_ln4'] = "Diese Karte zeigt nur QSOs, die
/*
___________________________________________________________________________________________
-JA Gridmaster -- Verwenden Sie alle 4 Textzeilen
+JA Gridmaster -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
@@ -150,46 +162,46 @@ $lang['awards_ja_gridmaster_description_ln4'] = "";
/*
___________________________________________________________________________________________
-VUCC -- Verwenden Sie alle 4 Textzeilen
+VUCC -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_vucc_description_ln1'] = "VUCC - VHF/UHF Century Club Award";
$lang['awards_vucc_description_ln2'] = "Der VHF/UHF Century Club Award wird für eine Mindestanzahl von gearbeiteten und bestätigten Gitterquadraten auf einem gewünschten Band verliehen.";
-$lang['awards_vucc_description_ln3'] = "Offizielle Informationen und Regeln finden Sie in diesem Dokument: Klick hier..";
+$lang['awards_vucc_description_ln3'] = "Offizielle Informationen und Regeln findest du in diesem Dokument: Klick hier..";
$lang['awards_vucc_description_ln4'] = "Nur VHF/UHF-Bänder sind relevant.";
/*
___________________________________________________________________________________________
-WAS -- Verwenden Sie alle 4 Textzeilen
+WAS -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_was_description_ln1'] = "WAS Diplom";
$lang['awards_was_description_ln2'] = "Die beliebteste Auszeichnung des ARRL ist das Worked All States Diplom. Tausende von Diplomen wurden an Funkamateure auf der ganzen Welt verliehen. Im 101. Jahr des ARRL haben sie die Diplome und das Programm in der Hoffnung überarbeitet und verbessert, das Diplomprogramm zu optimieren und zu vereinfachen.";
$lang['awards_was_description_ln3'] = "Das WAS (Worked All States) Diplom steht allen Funkamateuren weltweit zur Verfügung, die den Nachweis mit schriftlicher Bestätigung von Kontakten mit jedem der 50 Bundesstaaten der Vereinigten Staaten von Amerika erbringen. Funkamateure in den USA und ihren angehängten Staaten müssen Mitglieder des ARRL sein, um sich für einen WAS bewerben zu können. Bewerber aus dem Ausland sind von dieser Anforderung befreit.";
-$lang['awards_was_description_ln4'] = "Alle Informationen und Regeln für den ARRL WAS Award finden Sie hier.";
+$lang['awards_was_description_ln4'] = "Alle Informationen und Regeln für den ARRL WAS Award findest du hier.";
/*
___________________________________________________________________________________________
-WWFF -- Verwenden Sie alle 4 Textzeilen
+WWFF -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_wwff_description_ln1'] = "WWFF - World Wide Flora and Fauna Award";
$lang['awards_wwff_description_ln2'] = "WWFF, World Wide Flora and Fauna in Amateur Radio, ermutigt lizenzierte Funkamateure, ihre Funkstationen zu verlassen und in geschützten Flora- und Fauna-Gebieten (PFF) weltweit portabel zu funken.";
$lang['awards_wwff_description_ln3'] = "Bereits mehr als 26.000 geschützte Flora- und Fauna-Gebiete (PFF) weltweit sind in dem WWFF-Verzeichnis registriert. Jäger und Aktivatoren können bunte Diplome sowohl weltweit als auch national beantragen.";
-$lang['awards_wwff_description_ln4'] = "Für weitere Informationen besuchen Sie bitte: https://wwff.co/awards/.";
+$lang['awards_wwff_description_ln4'] = "Für weitere Informationen besuche bitte: https://wwff.co/awards/.";
/*
___________________________________________________________________________________________
-WAJA -- Use all 4 Lines of Text
+WAJA -- Verwende alle 4 Textzeilen
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Award";
-$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
-$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
-$lang['awards_waja_description_ln4'] = "For more information, please visit: https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm.";
+$lang['awards_waja_description_ln2'] = "WAJA, 'Worked All Japan prefectures in Amateur Radio', ermutigt lizenzierte Amateurfunkbetreiber dazu, mit allen Präfekturen in Japan zu arbeiten.";
+$lang['awards_waja_description_ln3'] = "Du kannst diesen Award beanspruchen, indem du (gehört hast) und eine QSL-Karte von einer Amateurstation in jedem der 47 Präfekturen Japans erhalten hast. Eine Liste der QSL-Karten sollte nach der WAJA (HAJA) Referenznummer geordnet sein, jedoch können die Namen der Präfekturen ausgelassen werden.";
+$lang['awards_waja_description_ln4'] = "Für weitere Informationen besuche bitte: https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm.";
diff --git a/application/language/german/menu_lang.php b/application/language/german/menu_lang.php
index 40cf89a65..de268c39d 100644
--- a/application/language/german/menu_lang.php
+++ b/application/language/german/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/greek/awards_lang.php b/application/language/greek/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/greek/awards_lang.php
+++ b/application/language/greek/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/greek/menu_lang.php b/application/language/greek/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/greek/menu_lang.php
+++ b/application/language/greek/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/italian/awards_lang.php b/application/language/italian/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/italian/awards_lang.php
+++ b/application/language/italian/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/italian/menu_lang.php b/application/language/italian/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/italian/menu_lang.php
+++ b/application/language/italian/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/polish/awards_lang.php b/application/language/polish/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/polish/awards_lang.php
+++ b/application/language/polish/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/polish/menu_lang.php b/application/language/polish/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/polish/menu_lang.php
+++ b/application/language/polish/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/russian/awards_lang.php b/application/language/russian/awards_lang.php
index b62c49486..50c602bbe 100644
--- a/application/language/russian/awards_lang.php
+++ b/application/language/russian/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/russian/menu_lang.php b/application/language/russian/menu_lang.php
index e1e9ef73e..d0be1dfd8 100644
--- a/application/language/russian/menu_lang.php
+++ b/application/language/russian/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/spanish/awards_lang.php b/application/language/spanish/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/spanish/awards_lang.php
+++ b/application/language/spanish/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/spanish/menu_lang.php b/application/language/spanish/menu_lang.php
index 93d1654c7..bbb9fe8b6 100644
--- a/application/language/spanish/menu_lang.php
+++ b/application/language/spanish/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/swedish/awards_lang.php b/application/language/swedish/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/swedish/awards_lang.php
+++ b/application/language/swedish/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/swedish/menu_lang.php b/application/language/swedish/menu_lang.php
index fe867ae23..b6253125d 100644
--- a/application/language/swedish/menu_lang.php
+++ b/application/language/swedish/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/language/turkish/awards_lang.php b/application/language/turkish/awards_lang.php
index 08355a024..b0e961908 100644
--- a/application/language/turkish/awards_lang.php
+++ b/application/language/turkish/awards_lang.php
@@ -64,6 +64,18 @@ $lang['awards_ffma_description_ln3'] = "The award will be given to any amateur w
$lang['awards_ffma_description_ln4'] = "For more information, you can visit this link: https://www.arrl.org/ffma.";
+/*
+___________________________________________________________________________________________
+H26 -- Use all 4 Lines of Text
+___________________________________________________________________________________________
+*/
+
+$lang['awards_helvetia_description_ln1'] = "HELVETIA 26 | SWITZERLAND AWARD";
+$lang['awards_helvetia_description_ln2'] = "The USKA (Union of Swiss Shortwave Amateurs) sponsors two awards, the HELVETIA 26 (H26) Award and the SWITZERLAND Award, aimed at promoting activities on the bands by encouraging contacts across as many Swiss cantons as possible on multiple bands.";
+$lang['awards_helvetia_description_ln3'] = "These awards come in two versions: one for HF bands and the other for VHF (including SHF and UHF) bands. Valid connections for these awards date back to January 1, 1980";
+$lang['awards_helvetia_description_ln4'] = "For more information, you can visit this link: https://www.uska.ch/contest/uska-diplome/.";
+
+
/*
___________________________________________________________________________________________
IOTA -- Use all 4 Lines of Text
diff --git a/application/language/turkish/menu_lang.php b/application/language/turkish/menu_lang.php
index 426be0b02..ae7fbabdb 100644
--- a/application/language/turkish/menu_lang.php
+++ b/application/language/turkish/menu_lang.php
@@ -38,6 +38,7 @@ $lang['menu_cq'] = 'CQ';
$lang['menu_dok'] = 'DOK';
$lang['menu_dxcc'] = 'DXCC';
$lang['menu_ffma'] = 'Fred Fish Memorial Award';
+$lang['menu_helvetia'] = "H26";
$lang['menu_gridmaster'] = "Gridmaster";
$lang['menu_dl_gridmaster'] = 'DL Gridmaster';
$lang['menu_lx_gridmaster'] = 'LX Gridmaster';
diff --git a/application/libraries/Genfunctions.php b/application/libraries/Genfunctions.php
new file mode 100644
index 000000000..30d2a6964
--- /dev/null
+++ b/application/libraries/Genfunctions.php
@@ -0,0 +1,69 @@
+ 0) {
+ $sql .= implode(' or ', $qsl);
+ } else {
+ $sql .= '1=0';
+ }
+ $sql .= ')';
+ } else {
+ $sql.=' and 1=0';
+ }
+ return $sql;
+ }
+
+ function addBandToQuery($band) {
+ $sql = '';
+ if ($band != 'All') {
+ if ($band == 'SAT') {
+ $sql .= " and col_prop_mode ='" . $band . "'";
+ } else {
+ $sql .= " and col_prop_mode !='SAT'";
+ $sql .= " and col_band ='" . $band . "'";
+ }
+ }
+ return $sql;
+ }
+
+ function gen_qsl_from_postdata($postdata) {
+ $qsl='';
+ if ($postdata['confirmed'] != NULL) {
+ if ($postdata['qsl'] != NULL ) {
+ $qsl .= "Q";
+ }
+ if ($postdata['lotw'] != NULL ) {
+ $qsl .= "L";
+ }
+ if ($postdata['eqsl'] != NULL ) {
+ $qsl .= "E";
+ }
+ if ($postdata['qrz'] != NULL ) {
+ $qsl .= "Z";
+ }
+ }
+ return $qsl;
+ }
+
+}
diff --git a/application/migrations/181_add_helvetia_bandxuser.php b/application/migrations/181_add_helvetia_bandxuser.php
new file mode 100644
index 000000000..573088f5d
--- /dev/null
+++ b/application/migrations/181_add_helvetia_bandxuser.php
@@ -0,0 +1,23 @@
+db->field_exists('helvetia', 'bandxuser')) {
+ $this->dbforge->add_column('bandxuser', $fields);
+ }
+ }
+
+ public function down()
+ {
+ if ($this->db->field_exists('helvetia', 'bandxuser')) {
+ $this->dbforge->drop_column('bandxuser', 'helvetia');
+ }
+ }
+}
diff --git a/application/migrations/182_main_recreate_iota_idx.php b/application/migrations/182_main_recreate_iota_idx.php
new file mode 100644
index 000000000..7e783db2f
--- /dev/null
+++ b/application/migrations/182_main_recreate_iota_idx.php
@@ -0,0 +1,31 @@
+add_ix('HRD_IDX_COL_IOTA','`station_id`,`COL_IOTA`');
+ }
+
+
+ public function down(){
+ $this->rm_ix('HRD_IDX_COL_IOTA');
+ }
+
+ private function add_ix($index,$cols) {
+ $ix_exist = $this->db->query("SHOW INDEX FROM ".$this->config->item('table_name')." WHERE Key_name = '".$index."'")->num_rows();
+ if ($ix_exist == 0) {
+ $sql = "ALTER TABLE ".$this->config->item('table_name')." ADD INDEX `".$index."` (".$cols.");";
+ $this->db->query($sql);
+ }
+ }
+
+ private function rm_ix($index) {
+ $ix_exist = $this->db->query("SHOW INDEX FROM ".$this->config->item('table_name')." WHERE Key_name = '".$index."'")->num_rows();
+ if ($ix_exist >= 1) {
+ $sql = "ALTER TABLE ".$this->config->item('table_name')." DROP INDEX `".$index."`;";
+ $this->db->query($sql);
+ }
+ }
+}
diff --git a/application/models/Bands.php b/application/models/Bands.php
index f371d4007..2a8df6cc5 100644
--- a/application/models/Bands.php
+++ b/application/models/Bands.php
@@ -260,6 +260,7 @@ class Bands extends CI_Model {
'cq' => $band['cq'] == "true" ? '1' : '0',
'dok' => $band['dok'] == "true" ? '1' : '0',
'dxcc' => $band['dxcc'] == "true" ? '1' : '0',
+ 'helvetia' => $band['helvetia'] == "true" ? '1' : '0',
'iota' => $band['iota'] == "true" ? '1' : '0',
'pota' => $band['pota'] == "true" ? '1' : '0',
'sig' => $band['sig'] == "true" ? '1' : '0',
@@ -307,8 +308,8 @@ class Bands extends CI_Model {
$this->db->insert('bands', $data);
}
- $this->db->query("insert into bandxuser (bandid, userid, active, cq, dok, dxcc, iota, pota, sig, sota, uscounties, was, wwff, vucc)
- select bands.id, " . $this->session->userdata('user_id') . ", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 from bands where band ='".$data['band']."' and not exists (select 1 from bandxuser where userid = " . $this->session->userdata('user_id') . " and bandid = bands.id);");
+ $this->db->query("insert into bandxuser (bandid, userid, active, cq, dok, dxcc, helvetia, iota, pota, sig, sota, uscounties, was, wwff, vucc, waja)
+ select bands.id, " . $this->session->userdata('user_id') . ", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 from bands where band ='".$data['band']."' and not exists (select 1 from bandxuser where userid = " . $this->session->userdata('user_id') . " and bandid = bands.id);");
}
function getband($id) {
diff --git a/application/models/Cq.php b/application/models/Cq.php
index 2583fd5a5..3dafbfd38 100644
--- a/application/models/Cq.php
+++ b/application/models/Cq.php
@@ -2,6 +2,10 @@
class CQ extends CI_Model{
+ function __construct() {
+ $this->load->library('Genfunctions');
+ }
+
function get_cq_array($bands, $postdata, $location_list) {
$cqZ = array(); // Used for keeping track of which states that are not worked
@@ -9,22 +13,8 @@ class CQ extends CI_Model{
$cqZ[$i]['count'] = 0; // Inits each cq zone's count
}
- $qsl = "";
- if ($postdata['confirmed'] != NULL) {
- if ($postdata['qsl'] != NULL ) {
- $qsl .= "Q";
- }
- if ($postdata['lotw'] != NULL ) {
- $qsl .= "L";
- }
- if ($postdata['eqsl'] != NULL ) {
- $qsl .= "E";
- }
- if ($postdata['qrz'] != NULL ) {
- $qsl .= "Z";
- }
- }
-
+ $qsl = $this->genfunctions->gen_qsl_from_postdata($postdata);
+
foreach ($bands as $band) {
for ($i = 1; $i <= 40; $i++) {
$bandCq[$i][$band] = '-'; // Sets all to dash to indicate no result
@@ -89,7 +79,7 @@ class CQ extends CI_Model{
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
$sql .= " and not exists (select 1 from " . $this->config->item('table_name') .
" where station_id in (" . $location_list .
@@ -99,9 +89,9 @@ class CQ extends CI_Model{
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$sql .= ")";
@@ -122,56 +112,15 @@ class CQ extends CI_Model{
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$query = $this->db->query($sql);
return $query->result();
}
- function addQslToQuery($postdata) {
- $sql = '';
- $qsl = array();
- if ($postdata['qrz'] != NULL || $postdata['lotw'] != NULL || $postdata['qsl'] != NULL || $postdata['eqsl'] != NULL) {
- $sql .= ' and (';
- if ($postdata['qsl'] != NULL) {
- array_push($qsl, "col_qsl_rcvd = 'Y'");
- }
- if ($postdata['lotw'] != NULL) {
- array_push($qsl, "col_lotw_qsl_rcvd = 'Y'");
- }
- if ($postdata['eqsl'] != NULL) {
- array_push($qsl, "col_eqsl_qsl_rcvd = 'Y'");
- }
- if ($postdata['qrz'] != NULL) {
- array_push($qsl, "COL_QRZCOM_QSO_DOWNLOAD_STATUS = 'Y'");
- }
- if (count($qsl) > 0) {
- $sql .= implode(' or ', $qsl);
- } else {
- $sql .= '1=0';
- }
- $sql .= ')';
- } else {
- $sql.=' and 1=0';
- }
- return $sql;
- }
-
- function addBandToQuery($band) {
- $sql = '';
- if ($band != 'All') {
- if ($band == 'SAT') {
- $sql .= " and col_prop_mode ='" . $band . "'";
- } else {
- $sql .= " and col_prop_mode !='SAT'";
- $sql .= " and col_band ='" . $band . "'";
- }
- }
- return $sql;
- }
/*
* Function gets worked and confirmed summary on each band on the active stationprofile
@@ -248,7 +197,7 @@ class CQ extends CI_Model{
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$query = $this->db->query($sql);
diff --git a/application/models/Dok.php b/application/models/Dok.php
index f2ed33264..c17c2e76b 100644
--- a/application/models/Dok.php
+++ b/application/models/Dok.php
@@ -2,6 +2,10 @@
class DOK extends CI_Model {
+ function __construct() {
+ $this->load->library('Genfunctions');
+ }
+
function get_dok_array($bands, $postdata, $location_list) {
$doks = array();
@@ -13,21 +17,7 @@ class DOK extends CI_Model {
$doks[$dok->COL_DARC_DOK]['count'] = 0;
}
- $qsl = "";
- if ($postdata['confirmed'] != NULL) {
- if ($postdata['qsl'] != NULL ) {
- $qsl .= "Q";
- }
- if ($postdata['lotw'] != NULL ) {
- $qsl .= "L";
- }
- if ($postdata['eqsl'] != NULL ) {
- $qsl .= "E";
- }
- if ($postdata['qrz'] != NULL ) {
- $qsl .= "Z";
- }
- }
+ $qsl = $this->genfunctions->gen_qsl_from_postdata($postdata);
foreach ($bands as $band) {
foreach ($list as $dok) {
@@ -98,13 +88,13 @@ class DOK extends CI_Model {
$sql .= " AND (COL_MODE = '" . $postdata['mode'] . "' OR COL_SUBMODE = '" . $postdata['mode'] . "')";
}
$sql .= $this->addDokTypeToQuery($postdata['doks']);
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
$sql .= " AND NOT EXISTS (SELECT 1 from " . $this->config->item('table_name') .
" WHERE station_id in (" . $location_list .
") AND COL_DARC_DOK = thcv.COL_DARC_DOK AND COL_DARC_DOK <> '' AND COL_DARC_DOK <> 'NM' ";
$sql .= $this->addDokTypeToQuery($postdata['doks']);
- $sql .= $this->addBandToQuery($band);
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addBandToQuery($band);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$sql .= ")";
$query = $this->db->query($sql);
@@ -119,52 +109,12 @@ class DOK extends CI_Model {
$sql .= " AND (COL_MODE = '" . $postdata['mode'] . "' or COL_SUBMODE = '" . $postdata['mode'] . "')";
}
$sql .= $this->addDokTypeToQuery($postdata['doks']);
- $sql .= $this->addBandToQuery($band);
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addBandToQuery($band);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$query = $this->db->query($sql);
return $query->result();
}
- function addQslToQuery($postdata) {
- $sql = '';
- $qsl = array();
- if ($postdata['qrz'] != NULL || $postdata['lotw'] != NULL || $postdata['qsl'] != NULL || $postdata['eqsl'] != NULL) {
- $sql .= ' and (';
- if ($postdata['qsl'] != NULL) {
- array_push($qsl, "col_qsl_rcvd = 'Y'");
- }
- if ($postdata['lotw'] != NULL) {
- array_push($qsl, "col_lotw_qsl_rcvd = 'Y'");
- }
- if ($postdata['eqsl'] != NULL) {
- array_push($qsl, "col_eqsl_qsl_rcvd = 'Y'");
- }
- if ($postdata['qrz'] != NULL) {
- array_push($qsl, "COL_QRZCOM_QSO_DOWNLOAD_STATUS = 'Y'");
- }
- if (count($qsl) > 0) {
- $sql .= implode(' or ', $qsl);
- } else {
- $sql .= '1=0';
- }
- $sql .= ')';
- } else {
- $sql.=' and 1=0';
- }
- return $sql;
- }
- function addBandToQuery($band) {
- $sql = '';
- if ($band != 'All') {
- if ($band == 'SAT') {
- $sql .= " AND COL_PROP_MODE ='" . $band . "'";
- } else {
- $sql .= " AND COL_PROP_MODE !='SAT'";
- $sql .= " AND col_BAND ='" . $band . "'";
- }
- }
- return $sql;
- }
function addDokTypeToQuery($doks) {
$sql = '';
@@ -236,7 +186,7 @@ class DOK extends CI_Model {
} else if ($postdata['doks'] == 'sdok') {
$sql .= " AND COL_DARC_DOK NOT REGEXP '^[A-Z][0-9]{2}$'";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$query = $this->db->query($sql);
return $query->result();
}
diff --git a/application/models/Dxcc.php b/application/models/Dxcc.php
index ada40f4df..025d15ff9 100644
--- a/application/models/Dxcc.php
+++ b/application/models/Dxcc.php
@@ -2,6 +2,10 @@
class DXCC extends CI_Model {
+ function __construct() {
+ $this->load->library('Genfunctions');
+ }
+
/**
* Function: mostactive
* Information: Returns the most active band
@@ -70,21 +74,7 @@ class DXCC extends CI_Model {
$location_list = "'".implode("','",$logbooks_locations_array)."'";
- $qsl = "";
- if ($postdata['confirmed'] != NULL) {
- if ($postdata['qsl'] != NULL ) {
- $qsl .= "Q";
- }
- if ($postdata['lotw'] != NULL ) {
- $qsl .= "L";
- }
- if ($postdata['eqsl'] != NULL ) {
- $qsl .= "E";
- }
- if ($postdata['qrz'] != NULL ) {
- $qsl .= "Z";
- }
- }
+ $qsl = $this->genfunctions->gen_qsl_from_postdata($postdata);
foreach ($bands as $band) { // Looping through bands and entities to generate the array needed for display
foreach ($dxccArray as $dxcc) {
@@ -146,13 +136,13 @@ class DXCC extends CI_Model {
where station_id in (" . $location_list .
") and col_dxcc > 0";
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
if ($postdata['mode'] != 'All') {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$sql .= " group by col_dxcc
) x on dxcc_entities.adif = x.col_dxcc";
@@ -174,7 +164,7 @@ class DXCC extends CI_Model {
select col_dxcc from ".$this->config->item('table_name')." thcv
where station_id in (" . $location_list .
") and col_dxcc > 0";
- $sql .= $this->addBandToQuery($band);
+ $sql .= $this->genfunctions->addBandToQuery($band);
if ($postdata['mode'] != 'All') {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
@@ -188,19 +178,6 @@ class DXCC extends CI_Model {
return $query->result();
}
- function addBandToQuery($band) {
- $sql = '';
- if ($band != 'All') {
- if ($band == 'SAT') {
- $sql .= " and col_prop_mode ='" . $band . "'";
- } else {
- $sql .= " and col_prop_mode !='SAT'";
- $sql .= " and col_band ='" . $band . "'";
- }
- }
- return $sql;
- }
-
function fetchDxcc($postdata) {
$CI =& get_instance();
$CI->load->model('logbooks_model');
@@ -255,20 +232,20 @@ class DXCC extends CI_Model {
from ".$this->config->item('table_name')." thcv
where station_id in (" . $location_list .
") and col_dxcc > 0";
- $sql .= $this->addBandToQuery($postdata['band']);
+ $sql .= $this->genfunctions->addBandToQuery($postdata['band']);
if ($postdata['mode'] != 'All') {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
$sql .= " and not exists (select 1 from ".$this->config->item('table_name')." where station_id in (". $location_list .") and col_dxcc = thcv.col_dxcc and col_dxcc > 0";
- $sql .= $this->addBandToQuery($postdata['band']);
+ $sql .= $this->genfunctions->addBandToQuery($postdata['band']);
if ($postdata['mode'] != 'All') {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$sql .= ')';
$sql .= " group by col_dxcc
) ll on dxcc_entities.adif = ll.col_dxcc
@@ -291,13 +268,13 @@ class DXCC extends CI_Model {
where station_id in (". $location_list .
") and col_dxcc > 0";
- $sql .= $this->addBandToQuery($postdata['band']);
+ $sql .= $this->genfunctions->addBandToQuery($postdata['band']);
if ($postdata['mode'] != 'All') {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
$sql .= " group by col_dxcc
) ll on dxcc_entities.adif = ll.col_dxcc
@@ -314,37 +291,6 @@ class DXCC extends CI_Model {
return $query->result();
}
- // Made function instead of repeating this several times
- function addQslToQuery($postdata) {
- $sql = '';
- $qsl = array();
- if ($postdata['qrz'] != NULL || $postdata['lotw'] != NULL || $postdata['qsl'] != NULL || $postdata['eqsl'] != NULL) {
- $sql .= ' and (';
- if ($postdata['qsl'] != NULL) {
- array_push($qsl, "col_qsl_rcvd = 'Y'");
- }
- if ($postdata['lotw'] != NULL) {
- array_push($qsl, "col_lotw_qsl_rcvd = 'Y'");
- }
- if ($postdata['eqsl'] != NULL) {
- array_push($qsl, "col_eqsl_qsl_rcvd = 'Y'");
- }
- if ($postdata['qrz'] != NULL) {
- array_push($qsl, "COL_QRZCOM_QSO_DOWNLOAD_STATUS = 'Y'");
- }
- if (count($qsl) > 0) {
- $sql .= implode(' or ', $qsl);
- } else {
- $sql .= '1=0';
- }
- $sql .= ')';
- } else {
- $sql.=' and 1=0';
- }
- return $sql;
- }
-
-
// Made function instead of repeating this several times
function addContinentsToQuery($postdata) {
$sql = '';
@@ -471,7 +417,7 @@ class DXCC extends CI_Model {
$sql .= " and (col_mode = '" . $postdata['mode'] . "' or col_submode = '" . $postdata['mode'] . "')";
}
- $sql .= $this->addQslToQuery($postdata);
+ $sql .= $this->genfunctions->addQslToQuery($postdata);
if ($postdata['includedeleted'] == NULL) {
diff --git a/application/models/Dxcluster_model.php b/application/models/Dxcluster_model.php
index e9f379db9..45070489c 100644
--- a/application/models/Dxcluster_model.php
+++ b/application/models/Dxcluster_model.php
@@ -22,14 +22,18 @@ class Dxcluster_model extends CI_Model {
$CI->load->model('logbook_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
- // CURL Functions
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $dxcache_url);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$this->optionslib->get_option('version').' DXLookup');
- curl_setopt($ch, CURLOPT_HEADER, false);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $jsonraw = curl_exec($ch);
- curl_close($ch);
+ $this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
+ if (!$jsonraw = $this->cache->get('dxcache'.$band)) {
+ // CURL Functions
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, $dxcache_url);
+ curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$this->optionslib->get_option('version').' DXLookup');
+ curl_setopt($ch, CURLOPT_HEADER, false);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ $jsonraw = curl_exec($ch);
+ curl_close($ch);
+ $this->cache->save('dxcache'.$band, $jsonraw, 59); // Cache DXClusterCache Instancewide for 59seconds
+ }
$json = json_decode($jsonraw);
$date = date('Ymd', time());
diff --git a/application/models/Helvetia_model.php b/application/models/Helvetia_model.php
new file mode 100644
index 000000000..eccc0a85e
--- /dev/null
+++ b/application/models/Helvetia_model.php
@@ -0,0 +1,252 @@
+load->library('Genfunctions');
+ }
+
+ public $stateString = 'AG,AI,AR,BE,BL,BS,FR,GE,GL,GR,JU,LU,NE,NW,OW,SG,SH,SO,SZ,TG,TI,UR,VD,VS,ZG,ZH';
+
+ function get_helvetia_array($bands, $postdata) {
+ $CI =& get_instance();
+ $CI->load->model('logbooks_model');
+ $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
+
+ if (!$logbooks_locations_array) {
+ return null;
+ }
+
+ $location_list = "'".implode("','",$logbooks_locations_array)."'";
+
+ $stateArray = explode(',', $this->stateString);
+
+ $states = array(); // Used for keeping thelvetiak of which states that are not worked
+
+ $qsl = $this->genfunctions->gen_qsl_from_postdata($postdata);
+
+ foreach ($stateArray as $state) { // Generating array for use in the table
+ $states[$state]['count'] = 0; // Inits each state's count
+ }
+
+
+ foreach ($bands as $band) {
+ foreach ($stateArray as $state) { // Generating array for use in the table
+ $bandhelvetia[$state][$band] = '-'; // Sets all to dash to indicate no result
+ }
+
+ if ($postdata['worked'] != NULL) {
+ $helvetiaBand = $this->gethelvetiaWorked($location_list, $band, $postdata);
+ foreach ($helvetiaBand as $line) {
+ $bandhelvetia[$line->col_state][$band] = '