Skip to content

Commit acc36ce

Browse files
authored
Merge pull request wavelog#251 from wavelog/dev
Release 1.4
2 parents af842be + 8576945 commit acc36ce

File tree

191 files changed

+80894
-2656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+80894
-2656
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/application/config/config.php
33
/application/logs/*.php
44
/application/cache/*
5+
/uploads
56
/uploads/*.adi
67
/uploads/*.ADI
78
/uploads/*.tq8

application/config/migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
|
2323
*/
2424

25-
$config['migration_version'] = 188;
25+
$config['migration_version'] = 191;
2626

2727
/*
2828
|--------------------------------------------------------------------------

application/controllers/Adif.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ public function export_lotw()
139139
}
140140

141141
public function index() {
142+
$this->load->model('contesting_model');
143+
$data['contests']=$this->contesting_model->getActivecontests();
144+
142145
$this->load->model('stations');
143146

144147
$data['page_title'] = "ADIF Import / Export";
@@ -183,6 +186,7 @@ public function import() {
183186
$this->load->view('interface_assets/footer');
184187
} else {
185188
if ($this->stations->check_station_is_accessible($this->input->post('station_profile'))) {
189+
$contest=$this->security->xss_clean($this->input->post('contest')) ?? '';
186190
$stopnow=false;
187191
$fdata = array('upload_data' => $this->upload->data());
188192
ini_set('memory_limit', '-1');
@@ -222,6 +226,9 @@ public function import() {
222226
$alladif=[];
223227
while($record = $this->adif_parser->get_record())
224228
{
229+
if ($contest != '') {
230+
$record['contest_id']=$contest;
231+
}
225232
if(count($record) == 0) {
226233
break;
227234
};

application/controllers/Awards.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,12 @@ public function qso_details_ajax(){
373373
$searchphrase = str_replace('"', "", $this->security->xss_clean($this->input->post("Searchphrase")));
374374
$band = str_replace('"', "", $this->security->xss_clean($this->input->post("Band")));
375375
$mode = str_replace('"', "", $this->security->xss_clean($this->input->post("Mode")));
376+
$sat = str_replace('"', "", $this->security->xss_clean($this->input->post("Sat")));
377+
$orbit = str_replace('"', "", $this->security->xss_clean($this->input->post("Orbit")));
376378
$type = $this->security->xss_clean($this->input->post('Type'));
377379
$qsl = $this->input->post('QSL') == null ? '' : $this->security->xss_clean($this->input->post('QSL'));
378380
$searchmode = $this->input->post('searchmode') == null ? '' : $this->security->xss_clean($this->input->post('searchmode'));
379-
$data['results'] = $this->logbook_model->qso_details($searchphrase, $band, $mode, $type, $qsl, $searchmode);
381+
$data['results'] = $this->logbook_model->qso_details($searchphrase, $band, $mode, $type, $qsl, $sat, $orbit, $searchmode);
380382

381383
// This is done because we have two different ways to get dxcc info in Wavelog. Once is using the name (in awards), and the other one is using the ADIF DXCC.
382384
// We replace the values to make it look a bit nicer
@@ -402,7 +404,18 @@ public function qso_details_ajax(){
402404

403405
// Render Page
404406
$data['page_title'] = "Log View - " . $type;
405-
$data['filter'] = $type . " " . $searchphrase . " and band ".$band . " and mode ".$mode;
407+
$data['filter'] = $type." ".$searchphrase." and band ".$band;
408+
if ($band == 'SAT') {
409+
if ($sat != 'All' && $sat != null) {
410+
$data['filter'] .= " and sat ".$sat;
411+
}
412+
if ($orbit != 'All' && $orbit != null) {
413+
$data['filter'] .= " and orbit type ".$orbit;
414+
}
415+
}
416+
if ($mode != null && strtolower($mode) != 'all') {
417+
$data['filter'] .= " and mode ".$mode;
418+
}
406419
if (!empty($qsltype)) {
407420
$data['filter'] .= " and ".implode('/', $qsltype);
408421
}

application/controllers/Bandmap.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ function list() {
4444
'assets/js/sections/bandmap_list.js'
4545
];
4646

47-
$CI =& get_instance();
4847
// Get Date format
49-
if($CI->session->userdata('user_date_format')) {
48+
if($this->session->userdata('user_date_format')) {
5049
// If Logged in and session exists
51-
$pageData['custom_date_format'] = $CI->session->userdata('user_date_format');
50+
$pageData['custom_date_format'] = $this->session->userdata('user_date_format');
5251
} else {
5352
// Get Default date format from /config/wavelog.php
54-
$pageData['custom_date_format'] = $CI->config->item('qso_date_format');
53+
$pageData['custom_date_format'] = $this->config->item('qso_date_format');
5554
}
5655

5756
switch ($pageData['custom_date_format']) {

0 commit comments

Comments
 (0)