Merge branch 'dev' into pota_selectize

This commit is contained in:
HB9HIL
2024-03-04 17:46:22 +01:00
committed by GitHub
90 changed files with 1870 additions and 764 deletions

View File

@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
*/
$config['migration_version'] = 184;
$config['migration_version'] = 185;
/*
|--------------------------------------------------------------------------

View File

@@ -20,7 +20,7 @@ class Band extends CI_Controller {
$this->load->model('bands');
$data['bands'] = $this->bands->get_all_bands_for_user();
// Render Page
$data['page_title'] = "Bands";
$this->load->view('interface_assets/header', $data);
@@ -28,7 +28,7 @@ class Band extends CI_Controller {
$this->load->view('interface_assets/footer');
}
public function create()
public function create()
{
$this->load->model('bands');
$this->load->library('form_validation');
@@ -41,7 +41,7 @@ class Band extends CI_Controller {
$this->load->view('bands/create', $data);
}
else
{
{
$this->bands->add();
}
}
@@ -55,7 +55,7 @@ class Band extends CI_Controller {
$band_query = $this->bands->getband($item_id_clean);
$data['my_band'] = $band_query->row();
$data['page_title'] = "Edit Band";
$this->load->view('bands/edit', $data);
@@ -122,8 +122,11 @@ class Band extends CI_Controller {
$band['cq'] = $this->security->xss_clean($this->input->post('cq'));
$band['dok'] = $this->security->xss_clean($this->input->post('dok'));
$band['dxcc'] = $this->security->xss_clean($this->input->post('dxcc'));
$band['helvetia'] = $this->security->xss_clean($this->input->post('helvetia'));
$band['helvetia'] = $this->security->xss_clean($this->input->post('helvetia'));
$band['iota'] = $this->security->xss_clean($this->input->post('iota'));
$band['jcc'] = $this->security->xss_clean($this->input->post('jcc'));
$band['pota'] = $this->security->xss_clean($this->input->post('pota'));
$band['rac'] = $this->security->xss_clean($this->input->post('rac'));
$band['sig'] = $this->security->xss_clean($this->input->post('sig'));
$band['sota'] = $this->security->xss_clean($this->input->post('sota'));
$band['uscounties'] = $this->security->xss_clean($this->input->post('uscounties'));
@@ -131,11 +134,10 @@ class Band extends CI_Controller {
$band['wwff'] = $this->security->xss_clean($this->input->post('wwff'));
$band['vucc'] = $this->security->xss_clean($this->input->post('vucc'));
$band['waja'] = $this->security->xss_clean($this->input->post('waja'));
$band['pota'] = $this->security->xss_clean($this->input->post('pota'));
$this->load->model('bands');
$this->bands->saveBand($id, $band);
header('Content-Type: application/json');
echo json_encode(array('message' => 'OK'));
return;
@@ -144,10 +146,10 @@ class Band extends CI_Controller {
public function saveBandAward() {
$award = $this->security->xss_clean($this->input->post('award'));
$status = $this->security->xss_clean($this->input->post('status'));
$this->load->model('bands');
$this->bands->saveBandAward($award, $status);
header('Content-Type: application/json');
echo json_encode(array('message' => 'OK'));
return;

View File

@@ -6,6 +6,16 @@
class Clublog extends CI_Controller {
function __construct()
{
parent::__construct();
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
// Show frontend if there is one
public function index() {
$this->config->load('config');

View File

@@ -13,10 +13,10 @@ class Dxcluster extends CI_Controller {
function spots($band,$age = '', $de = '') {
if ($age == '') {
$age = $this->optionslib->get_option('dxcluster_maxage');
$age = $this->optionslib->get_option('dxcluster_maxage') ?? 60;
}
if ($de == '') {
$de = $this->optionslib->get_option('dxcluster_decont');
$de = $this->optionslib->get_option('dxcluster_decont') ?? 'EU';
}
$calls_found=$this->dxcluster_model->dxc_spotlist($band, $age, $de);
header('Content-Type: application/json');

View File

@@ -4,8 +4,15 @@ class eqsl extends CI_Controller {
/* Controls who can access the controller and its functions */
function __construct() {
parent::__construct();
$this->load->helper(array('form', 'url'));
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
// Default view when loading controller.

View File

@@ -11,6 +11,17 @@ class Hrdlog extends CI_Controller {
* When called from the url wavelog/hrdlog/upload, the function loops through all station_id's with a hrdlog code defined.
* All QSOs not previously uploaded, will then be uploaded, one at a time
*/
function __construct()
{
parent::__construct();
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
public function upload() {
$this->setOptions();
@@ -34,7 +45,6 @@ class Hrdlog extends CI_Controller {
echo "No station profiles with a hrdlog Code found.";
log_message('error', "No station profiles with a hrdlog Code found.");
}
}
function setOptions() {

View File

@@ -851,7 +851,7 @@ class Logbook extends CI_Controller {
if($callsign['callsign']['error'] == "Session does not exist or expired") {
$hamqth_session_key = $this->hamqth->session($this->config->item('hamqth_username'), $this->config->item('hamqth_password'));
$this->session->set_userdata('hamqth_session_key', $hamqth_session_key);
$callsign['callsign'] = $this->hamqth->search($callsign, $this->session->userdata('hamqth_session_key'));
$callsign['callsign'] = $this->hamqth->search($id, $this->session->userdata('hamqth_session_key'));
}
if (isset($data['callsign']['gridsquare'])) {
$this->load->model('logbook_model');

View File

@@ -414,14 +414,14 @@ class Logbookadvanced extends CI_Controller {
$data['datetime'] = date($custom_date_format, strtotime($qso['COL_TIME_ON'])). date(' H:i',strtotime($qso['COL_TIME_ON']));
$data['satname'] = $qso['COL_SAT_NAME'];
$data['confirmed'] = ($this->logbook_model->qso_is_confirmed($qso)==true) ? true : false;
return $data;
}
public function calculateCoordinates($qso, $lat, $long, $mygrid, $measurement_base, $var_dist, $custom_date_format) {
$this->load->library('Qra');
$this->load->model('logbook_model');
$latlng1 = $this->qra->qra2latlong($mygrid);
$latlng2[0] = $lat;
$latlng2[1] = $long;
@@ -486,6 +486,7 @@ class Logbookadvanced extends CI_Controller {
$json_string['iota']['show'] = $this->input->post('iota');
$json_string['pota']['show'] = $this->input->post('pota');
$json_string['operator']['show'] = $this->input->post('operator');
$json_string['comment']['show'] = $this->input->post('comment');
$obj['column_settings']= json_encode($json_string);

View File

@@ -27,7 +27,7 @@ class Logbooks extends CI_Controller {
$this->load->view('interface_assets/footer');
}
public function create()
public function create()
{
$this->load->library('form_validation');
@@ -41,11 +41,11 @@ class Logbooks extends CI_Controller {
$this->load->view('interface_assets/footer');
}
else
{
{
$this->load->model('logbooks_model');
$this->logbooks_model->add();
redirect('logbooks');
redirect('stationsetup');
}
}
@@ -65,7 +65,7 @@ class Logbooks extends CI_Controller {
$data['station_locations_list'] = $this->stations->all_of_user();
$data['station_locations_linked'] = $this->logbooks_model->list_logbooks_linked($station_logbook_id);
$data['page_title'] = "Edit Station Logbook";
$this->form_validation->set_rules('station_logbook_id', 'Station Logbook Name', 'required');
@@ -99,27 +99,27 @@ class Logbooks extends CI_Controller {
$this->logbooks_model->set_logbook_active($id);
$this->user_model->update_session($this->session->userdata('user_id'));
redirect('logbooks');
redirect('stationsetup');
}
public function delete($id) {
$this->load->model('logbooks_model');
$this->logbooks_model->delete($id);
redirect('logbooks');
redirect('stationsetup');
}
public function delete_relationship($logbook_id, $station_id) {
$this->load->model('logbooks_model');
$this->logbooks_model->delete_relationship($logbook_id, $station_id);
redirect('logbooks/edit/'.$logbook_id);
}
public function publicslug_validate() {
$this->load->model('logbooks_model');
$result = $this->logbooks_model->is_public_slug_available($this->input->post('public_slug'));
if($result == true) {
$data['slugAvailable'] = true;
} else {
@@ -151,8 +151,8 @@ class Logbooks extends CI_Controller {
{
$this->load->model('logbooks_model');
$result = $this->logbooks_model->is_public_slug_available($this->input->post('public_slug'));
if($result == true) {
$returndata = $this->logbooks_model->save_public_slug($this->input->post('public_slug'), $this->input->post('logbook_id'));
echo "<div class=\"alert alert-success\" role=\"alert\">Public Slug Saved</div>";

View File

@@ -26,6 +26,11 @@ class Lotw extends CI_Controller {
// Load language files
$this->lang->load('lotw');
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
/*
@@ -352,7 +357,7 @@ class Lotw extends CI_Controller {
/*
| Download QSO Matches from LoTW
*/
*/
if ($this->user_model->authorize(2)) {
echo "<br><br>";
$sync_user_id=$this->session->userdata('user_id');

View File

@@ -6,6 +6,16 @@
class Qrz extends CI_Controller {
function __construct()
{
parent::__construct();
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
// Show frontend if there is one
public function index() {
$this->config->load('config');
@@ -38,7 +48,6 @@ class Qrz extends CI_Controller {
echo "No station profiles with a QRZ API Key found.";
log_message('error', "No station profiles with a QRZ API Key found.");
}
}
function setOptions() {
@@ -247,7 +256,7 @@ class Qrz extends CI_Controller {
} else {
echo "Downloaded QRZ report contains no matches.";
}
}
}
}
function mass_download_qsos($qrz_api_key = '', $lastqrz = '1900-01-01', $trusted = false) {

View File

@@ -583,6 +583,17 @@ class QSO extends CI_Controller {
$this->load->view('qso/components/previous_contacts', $data);
}
public function get_eqsl_default_qslmsg() { // Get ONLY Default eQSL-Message with this function. This is ONLY for QSO relevant!
$return_json = array();
$option_key = $this->input->post('option_key');
if ($option_key > 0) {
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $option_key))->result();
$return_json['eqsl_default_qslmsg'] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
}
header('Content-Type: application/json');
echo json_encode($return_json);
}
function check_locator($grid) {
$grid = $this->input->post('locator');
// Allow empty locator

View File

@@ -57,15 +57,8 @@ class Station extends CI_Controller
$this->load->view('station_profile/create');
$this->load->view('interface_assets/footer');
} else {
if (($station_id = $this->stations->add()) !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
if (!empty(trim($eqsl_default_qslmsg))) {
$this->load->model('user_options_model');
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($station_id => $eqsl_default_qslmsg));
}
}
redirect('station');
$this->stations->add();
redirect('stationsetup');
}
}
@@ -77,32 +70,17 @@ class Station extends CI_Controller
$data['page_title'] = lang('station_location_edit') . $data['my_station_profile']->station_profile_name;
if ($this->form_validation->run() == FALSE) {
// [eQSL default msg] GET from user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id) //
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $id))->result();
$data['eqsl_default_qslmsg'] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
$this->load->view('interface_assets/header', $data);
$this->load->view('station_profile/edit');
$this->load->view('interface_assets/footer');
} else {
if ($this->stations->edit() !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
$this->load->model('user_options_model');
if (!empty(trim($eqsl_default_qslmsg))) {
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($id => $eqsl_default_qslmsg));
} else {
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
}
if ($this->stations->edit()) {
$data['notice'] = lang('station_location') . $this->security->xss_clean($this->input->post('station_profile_name', true)) . " Updated";
}
$data['notice'] = lang('station_location') . $this->security->xss_clean($this->input->post('station_profile_name', true)) . " Updated";
redirect('station');
redirect('stationsetup');
}
} else {
redirect('station');
redirect('stationsetup');
}
}
@@ -125,22 +103,19 @@ class Station extends CI_Controller
} else {
$this->stations->add();
redirect('station');
redirect('stationsetup');
}
} else {
redirect('station');
redirect('stationsetup');
}
}
public function edit_favorite($id)
public function edit_favourite($id)
{
$is_favorite = $this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$id))->row()->option_value ?? 'false';
if ($is_favorite == 'true') {
$this->user_options_model->del_option('station_location', 'is_favorite', array('option_key'=>$id));
} else if ($is_favorite == 'false') {
$this->user_options_model->set_option('station_location', 'is_favorite', array($id=>'true'));
}
redirect('station');
$this->load->model('stations');
$this->stations->edit_favourite($id);
redirect('stationsetup');
}
function load_station_for_editing($id): array
@@ -155,9 +130,7 @@ class Station extends CI_Controller
$item_id_clean = $this->security->xss_clean($id);
$station_profile_query = $this->stations->profile($item_id_clean);
$data['my_station_profile'] = $station_profile_query->row();
$data['my_station_profile'] = $this->stations->profile_full($item_id_clean);
$data['dxcc_list'] = $this->dxcc->list();
@@ -176,19 +149,19 @@ class Station extends CI_Controller
}
//$this->stations->logbook_session_data();
redirect('station');
redirect('stationsetup');
}
function set_active($current, $new, $is_ajax = null)
{
$this->load->model('stations');
$this->stations->set_active($current, $new);
if ($is_ajax != null) {
return;
}
redirect('station');
redirect('stationsetup');
}
public function delete($id)
@@ -196,11 +169,8 @@ class Station extends CI_Controller
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id)) {
$this->stations->delete($id);
// [eQSL default msg] DELETE user options //
$this->load->model('user_options_model');
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
}
redirect('station');
redirect('stationsetup');
}
public function deletelog($id)
@@ -209,7 +179,7 @@ class Station extends CI_Controller
if ($this->stations->check_station_is_accessible($id)) {
$this->stations->deletelog($id);
}
redirect('station');
redirect('stationsetup');
}
/*
@@ -246,19 +216,4 @@ class Station extends CI_Controller
echo json_encode($json);
}
// [eQSL default msg] Function return options from this station (but can be general use) //
public function get_options()
{
$return_json = array();
$option_type = $this->input->post('option_type');
$option_name = $this->input->post('option_name');
$option_key = $this->input->post('option_key');
if (!empty($option_type) && !empty($option_name) && ($option_key > 0)) {
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options($option_type, array('option_name' => $option_name, 'option_key' => $option_key))->result();
$return_json[$option_type] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
}
header('Content-Type: application/json');
echo json_encode($return_json);
}
}

View File

@@ -0,0 +1,321 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
Handles Displaying of information for station tools.
*/
class Stationsetup extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
}
public function index() {
$this->load->model('stations');
$this->load->model('Logbook_model');
$this->load->model('logbooks_model');
$data['my_logbooks'] = $this->logbooks_model->show_all();
$data['stations'] = $this->stations->all_with_count();
$data['current_active'] = $this->stations->find_active();
$data['is_there_qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id();
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/stationsetup.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/stationsetup.js")),
];
// Render Page
$data['page_title'] = "Station Setup";
$this->load->view('interface_assets/header', $data);
$this->load->view('stationsetup/stationsetup');
$this->load->view('interface_assets/footer', $footerData);
}
public function DeleteStation_json() {
$id2del=xss_clean($this->input->post('id2del',true));
if ($id2del ?? '' != '') {
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id2del)) {
$this->stations->delete($id2del);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Not allowed';
}
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function EmptyStation_json() {
$id2empty=xss_clean($this->input->post('id2Empty',true));
if ($id2empty ?? '' != '') {
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id2empty)) {
$this->stations->deletelog($id2empty);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Not allowed';
}
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function setActiveStation_json() {
$id2act=xss_clean($this->input->post('id2setActive',true));
if ($id2act ?? '' != '') {
$this->load->model('stations');
$current=$this->stations->find_active();
$this->stations->set_active($current, $id2act);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
// get active station for quickswitcher
public function getActiveStation() {
$active_loc = $this->stations->find_active();
echo json_encode($active_loc);
}
public function setFavorite_json() {
$id2fav = xss_clean($this->input->post('id2Favorite', true));
if ($id2fav ?? '' != '') {
$this->load->model('stations');
$this->stations->edit_favourite($id2fav);
$data['success'] = 1;
} else {
$data['success'] = 0;
$data['flashdata'] ='Error';
}
echo json_encode($data);
}
public function setActiveLogbook_json() {
$id2act=xss_clean($this->input->post('id2setActive',true));
if ($id2act ?? '' != '') {
$this->load->model('logbooks_model');
$this->logbooks_model->set_logbook_active($id2act);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function deleteLogbook_json() {
$id2del=xss_clean($this->input->post('id2delete',true));
if ($id2del ?? '' != '') {
$this->load->model('logbooks_model');
$this->logbooks_model->delete($id2del);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function newLogbook_json() {
$this->load->library('form_validation');
$this->form_validation->set_rules('stationLogbook_Name', 'Station Logbook Name', 'required');
if ($this->form_validation->run() == FALSE) {
$data['flashdata']=validation_errors();
$data['success']=0;
echo json_encode($data);
} else {
$this->load->model('logbooks_model');
$newId=$this->logbooks_model->add(xss_clean($this->input->post('stationLogbook_Name', true)));
if ($newId > 0) {
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
}
public function newLogbook() {
$data['page_title'] = "Create Station Logbook";
$this->load->view('stationsetup/create', $data);
}
public function newLocation() {
$this->load->model('stations');
$this->load->model('dxcc');
$data['dxcc_list'] = $this->dxcc->list();
$this->load->model('logbook_model');
$data['iota_list'] = $this->logbook_model->fetchIota();
$data['page_title'] = lang('station_location_create_header');
$this->load->view('station_profile/create', $data);
}
public function fetchLogbooks() {
$this->load->model('logbooks_model');
$hres=[];
$result = $this->logbooks_model->show_all()->result();
foreach ($result as $entry) {
$single=(Object)[];
$single->logbook_id=$entry->logbook_id;
$single->logbook_name=$entry->logbook_name;
$single->logbook_state=$this->lbstate2html($entry->logbook_id);
$single->logbook_edit=$this->lbedit2html($entry->logbook_id,$entry->logbook_name);
$single->logbook_delete=$this->lbdel2html($entry->logbook_id,$entry->logbook_name);
$single->logbook_link=$this->lblnk2html($entry->public_slug,$entry->logbook_name);
$single->logbook_publicsearch = $this->lbpublicsearch2html($entry->public_search);
array_push($hres,$single);
}
echo json_encode($hres);
}
private function lbpublicsearch2html($publicsearch) {
return ($publicsearch=='1' ? '<span class="badge text-bg-success">Enabled</span>' : 'Disabled');
}
private function lbstate2html($id) {
if($this->session->userdata('active_station_logbook') != $id) {
$htmret='<button id="'.$id.'" class="setActiveLogbook btn btn-outline-primary btn-sm">'.lang('station_logbooks_set_active').'</button>';
} else {
$htmret="<span class='badge text-bg-success'>" . lang('station_logbooks_active_logbook') . "</span>";
}
return $htmret;
}
private function lbdel2html($id, $logbook_name) {
if($this->session->userdata('active_station_logbook') != $id) {
$htmret='<button id="'.$id.'" class="deleteLogbook btn btn-danger btn-sm" cnftext="'.lang('station_logbooks_confirm_delete').$logbook_name.'"><i class="fas fa-trash-alt"></i></button>';
} else {
$htmret='';
}
return $htmret;
}
private function lblnk2html($public_slug, $logbook_name) {
if($public_slug != '') {
$htmret='<a target="_blank" href="'.site_url('visitor')."/".$public_slug.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-globe" title="'.lang('station_logbooks_view_public') . $logbook_name.'"></i></a>';
} else {
$htmret='';
}
return $htmret;
}
private function lbps2html($id, $logbook_name) {
return '<a href="'.site_url('logbooks/edit')."/".$id.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit" title="'.lang('station_logbooks_edit_logbook').': '.$logbook_name.'"></i></a>';
}
private function lbedit2html($id, $logbook_name) {
return '<a href="'.site_url('logbooks/edit')."/".$id.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit" title="'.lang('station_logbooks_edit_logbook').': '.$logbook_name.'"></i></a>';
}
public function fetchLocations() {
$this->load->model('stations');
$this->load->model('Logbook_model');
$result = $this->stations->all_with_count()->result();
$current_active = $this->stations->find_active();
$data['is_there_qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id();
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name'=>'locations_quickswitch'))->row()->option_value ?? 'false');
$hres=[];
foreach ($result as $entry) {
$single=(Object)[];
$single->station_id = $this->stationid2html($entry->station_id);
$single->station_name = $entry->station_profile_name;
$single->station_callsign = $entry->station_callsign;
$single->station_country = $this->stationcountry2html($entry->station_country, $entry->dxcc_end);
$single->station_gridsquare = $entry->station_gridsquare;
$single->station_badge = $this->stationbadge2html($entry->station_active, $entry->qso_total, $current_active, $entry->station_profile_name,$entry->station_id);
$single->station_edit = $this->stationedit2html($entry->station_id);
$single->station_emptylog = $this->stationemptylog2html($entry->station_id);
$single->station_copylog = $this->stationcopy2html($entry->station_id);
$single->station_delete = $this->stationdelete2html($entry->station_id, $entry->station_profile_name, $entry->station_active);
$single->station_favorite = $this->stationfavorite2html($entry->station_id, $quickswitch_enabled);
array_push($hres,$single);
}
echo json_encode($hres);
}
private function stationfavorite2html($id, $quickswitch_enabled) {
if ($quickswitch_enabled == 'false') {
return '';
}
$locationFavorite = ($this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$id))->row()->option_value ?? 'false');
if ($locationFavorite == 'true') {
$favStarClasses = 'class="setFavorite fas fa-star btn btn-sm" style="color: #ffc82b;"';
} else {
$favStarClasses = 'class="setFavorite far fa-star btn btn-sm" style="color: #a58118;"';
}
return '<button id ="' . $id .'" title="mark/unmark as favorite" ' . $favStarClasses . ' </a>';
}
private function stationid2html($station_id) {
return '<span class="badge bg-info">'.$station_id.'</span>';
}
private function stationbadge2html($station_active, $qso_total, $current_active, $station_profile_name, $id) {
$returntext = '';
if($station_active != 1) {
$returntext .= '<button id="'.$id.'" class="setActiveStation btn btn-outline-secondary btn-sm" cnftext="'. lang('station_location_confirm_active') . $station_profile_name .'">' . lang('station_location_set_active') . '</button><br/>';
} else {
$returntext .= '<span class="badge bg-success text-bg-success">' . lang('station_location_active') . '</span><br/>';
}
$returntext .='<span class="badge bg-light">' . $qso_total .' '. lang('gen_hamradio_qso') . '</span>';
return $returntext;
}
private function stationedit2html($id) {
return '<a href="' . site_url('station/edit')."/" . $id . '" title="' . lang('admin_edit') . '" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i></a>';
}
private function stationemptylog2html($id) {
return '<button id="'. $id . '" class="EmptyStation btn btn-danger btn-sm" title="' . lang('station_location_emptylog') . '" cnftext="' . lang('station_location_confirm_del_qso') . '"><i class="fas fa-trash-alt"></i></button>';
}
private function stationcopy2html($id) {
return '<a href="' . site_url('station/copy') . "/" . $id . '" title="' . lang('admin_copy') . '" class="btn btn-outline-primary btn-sm"><i class="fas fa-copy"></i></a>';
}
private function stationdelete2html($id, $station_profile_name, $station_active) {
if($station_active != 1) {
return '<button id="'.$id . '" class="DeleteStation btn btn-danger btn-sm" title="' . lang('admin_delete') . '" cnftext="' . lang('station_location_confirm_del_stationlocation') . $station_profile_name . lang('station_location_confirm_del_stationlocation_qso') . '"><i class="fas fa-trash-alt"></i></button>';
}
return '';
}
private function stationcountry2html($station_country, $dxcc_end) {
$returntext = $station_country == '' ? '- NONE -' : $station_country;
if ($dxcc_end != NULL) {
$returntext .= ' <span class="badge badge-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>';
}
return $returntext;
}
}

View File

@@ -8,6 +8,16 @@ class Update extends CI_Controller {
lotw_users - imports lotw users
*/
function __construct()
{
parent::__construct();
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo "Maintenance Mode is active. Try again later.\n";
redirect('user/login');
}
}
public function index()
{
$data['page_title'] = "Updates";
@@ -290,9 +300,9 @@ class Update extends CI_Controller {
if ($nCount > 0)
{
echo "DONE: " . number_format($nCount) . " callsigns loaded";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('scp_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('scp_update', $datetime , 'no');
} else {
echo "FAILED: Empty file";
}
@@ -360,9 +370,9 @@ class Update extends CI_Controller {
$totaltime = ($endtime - $starttime);
echo "This page was created in ".$totaltime." seconds <br />";
echo "Records inserted: " . $i . " <br/>";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('lotw_users_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('lotw_users_update', $datetime , 'no');
}
public function lotw_check() {
@@ -394,9 +404,9 @@ class Update extends CI_Controller {
if ($nCount > 0)
{
echo "DONE: " . number_format($nCount) . " DOKs and SDOKs saved";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('dok_file_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('dok_file_update', $datetime , 'no');
} else {
echo"FAILED: Empty file";
}
@@ -444,9 +454,9 @@ class Update extends CI_Controller {
if ($nCount > 0)
{
echo "DONE: " . number_format($nCount) . " SOTA's saved";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('sota_file_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('sota_file_update', $datetime , 'no');
} else {
echo"FAILED: Empty file";
}
@@ -481,12 +491,12 @@ class Update extends CI_Controller {
$data = str_getcsv($csv,"\n");
$nCount = 0;
foreach ($data as $idx => $row) {
if ($idx == 0) continue; // Skip line we are not interested in
$row = str_getcsv($row, ',');
if ($row[0]) {
fwrite($wwfffilehandle, $row[0].PHP_EOL);
$nCount++;
}
if ($idx == 0) continue; // Skip line we are not interested in
$row = str_getcsv($row, ',');
if ($row[0]) {
fwrite($wwfffilehandle, $row[0].PHP_EOL);
$nCount++;
}
}
fclose($wwfffilehandle);
@@ -494,9 +504,9 @@ class Update extends CI_Controller {
if ($nCount > 0)
{
echo "DONE: " . number_format($nCount) . " WWFF's saved";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('wwff_file_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('wwff_file_update', $datetime , 'no');
} else {
echo"FAILED: Empty file";
}
@@ -527,12 +537,12 @@ class Update extends CI_Controller {
$data = str_getcsv($csv,"\n");
$nCount = 0;
foreach ($data as $idx => $row) {
if ($idx == 0) continue; // Skip line we are not interested in
$row = str_getcsv($row, ',');
if ($row[0]) {
fwrite($potafilehandle, $row[0].PHP_EOL);
$nCount++;
}
if ($idx == 0) continue; // Skip line we are not interested in
$row = str_getcsv($row, ',');
if ($row[0]) {
fwrite($potafilehandle, $row[0].PHP_EOL);
$nCount++;
}
}
fclose($potafilehandle);
@@ -540,9 +550,9 @@ class Update extends CI_Controller {
if ($nCount > 0)
{
echo "DONE: " . number_format($nCount) . " POTA's saved";
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('pota_file_update', $datetime , 'no');
$datetime = new DateTime("now", new DateTimeZone('UTC'));
$datetime = $datetime->format('Ymd h:i');
$this->optionslib->update('pota_file_update', $datetime , 'no');
} else {
echo"FAILED: Empty file";
}

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = '今天';
$lang['dashboard_php_version_warning'] = '您需要升级您的 PHP 版本。 最低版本为 7.4。 你的版本是';
$lang['dashboard_country_files_warning'] = '您需要更新国家/地区文件! 请前往<a href="'.site_url('update').'">此处</a>执行此操作!';
$lang['dashboard_locations_warning'] = '您没有电台站位置。 前往<a href="'.site_url('station') .'">此处</a>创建它!';
$lang['dashboard_logbooks_warning'] = '你没有电台日志。 请前往<a href="'.site_url('logbooks') .'">此处</a>创建它!';
$lang['dashboard_locations_warning'] = '您没有电台站位置。 前往<a href="'.site_url('stationsetup') .'">此处</a>创建它!';
$lang['dashboard_logbooks_warning'] = '你没有电台日志。 请前往<a href="'.site_url('stationsetup') .'">此处</a>创建它!';
$lang['hams_at_no_activations_found'] = '未找到即将进行的激活。 请稍后再回来查看。';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = '账户';
$lang['menu_station_logbooks'] = '电台站日志簿';
$lang['menu_station_locations'] = '电台站位置';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = '波段';
$lang['menu_adif_import_export'] = 'ADIF 导入/导出';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -225,6 +225,11 @@ $lang['southamerica'] = 'Jižní Amerika';
$lang['gen_band_selection'] = 'Výběr pásma';
$lang['general_word_today'] = 'Dnes';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Účet';
$lang['menu_station_logbooks'] = 'Logy stanice';
$lang['menu_station_locations'] = 'Umístění stanice';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Pásmo';
$lang['menu_adif_import_export'] = 'ADIF import / export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Käyttäjätili';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bandit';
$lang['menu_adif_import_export'] = 'ADIF Tuonti / Vienti';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = "Aujourd'hui";
$lang['dashboard_php_version_warning'] = "Vous devez mettre à jour votre version PHP. La version minimale est 7.4. Votre version est";
$lang['dashboard_country_files_warning'] = "Vous devez mettre à jour les fichiers pays ! Cliquez <a href=\"".site_url('update')."\">ici</a> pour le faire !";
$lang['dashboard_locations_warning'] = "Vous n'avez pas de lieu de station. Cliquez <a href=\"". site_url('station') . "\">ici</a> pour en créer un !";
$lang['dashboard_logbooks_warning'] = "Vous n'avez pas de journal de travail pour la station. Aller sur cette <a href=\"". site_url('logbooks') . "\">page</a> pour en créer un !";
$lang['dashboard_locations_warning'] = "Vous n'avez pas de lieu de station. Cliquez <a href=\"". site_url('stationsetup') . "\">ici</a> pour en créer un !";
$lang['dashboard_logbooks_warning'] = "Vous n'avez pas de journal de travail pour la station. Aller sur cette <a href=\"". site_url('stationsetup') . "\">page</a> pour en créer un !";
$lang['hams_at_no_activations_found'] = "Aucune activation à venir trouvée. Veuillez revenir plus tard.";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = "mis à jour.";
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Heute';
$lang['dashboard_php_version_warning'] = 'Die PHP Version is zu alt. Benötigt wird mindestens die Version 7.4. Die installierte Version ist';
$lang['dashboard_country_files_warning'] = 'Die Länderlisten müssen aktualisiert werden! Klicke <a href="'.site_url('update').'">hier</a>, um das zu tun!';
$lang['dashboard_locations_warning'] = 'Es wurde kein Stationsstandort angelegt! Klicke <a href="'. site_url('station') . '">hier</a>, um das zu tun!';
$lang['dashboard_logbooks_warning'] = 'Es wurde kein Stationslogbuch angelegt. Klicke <a href="'. site_url('logbooks') . '">hier</a>, um das zu tun!';
$lang['dashboard_locations_warning'] = 'Es wurde kein Stationsstandort angelegt! Klicke <a href="'. site_url('stationsetup') . '">hier</a>, um das zu tun!';
$lang['dashboard_logbooks_warning'] = 'Es wurde kein Stationslogbuch angelegt. Klicke <a href="'. site_url('stationsetup') . '">hier</a>, um das zu tun!';
$lang['hams_at_no_activations_found'] = 'Keine bevorstehenden Aktivierungen gefunden. Bitte später noch einmal vorbeischauen.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Konto';
$lang['menu_station_logbooks'] = 'Stationslogbücher';
$lang['menu_station_locations'] = 'Stationsstandorte';
$lang['menu_select_location'] = "Wähle einen Stationsstandort";
$lang['menu_select_location_show_all'] = "Zeige alle";
$lang['menu_choose_another_logbook'] = "Wähle ein anderes Logbuch";
$lang['menu_station_setup'] = 'Stations Setup';
$lang['menu_bands'] = 'Bänder';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Andere Export Optionen";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' aktualisiert.'; // nur letztes Wort i
$lang['station_location_warning'] = 'Achtung: Du musst einen aktiven Stationsstandort auswählen. Gehe zu Rufzeichen -> Stationsstandorte um einen zu aktivieren.';
$lang['station_location_reassign_at'] = 'Bitte mache die Zuordnung in ';
$lang['station_location_warning_reassign'] = 'Aufgrund von Änderungen in Wavelog musst du QSOs wieder einem Stationsstandort zuordnen.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Station Name';
$lang['station_location_name_hint'] = 'Kurzname für den Stationsstandort. Zum Beispiel: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Rufzeichen';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -225,6 +225,11 @@ $lang['southamerica'] = 'South America';
$lang['gen_band_selection'] = 'Band selection';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -228,8 +228,8 @@ $lang['general_word_today'] = 'Сегодня';
$lang['dashboard_php_version_warning'] = 'Вам нужнго обновить версию PHP. Минимальная версия 7.4. Ваша версия';
$lang['dashboard_country_files_warning'] = 'Вам нужно обновить файлы стран! Пеерйдите <a href="'.site_url('update').'">сюда</a>, чтобы сделать это!';
$lang['dashboard_locations_warning'] = 'У вас нет расположений станций! Перейдите <a href="'. site_url('station') . '">сюда</a>, чтобы создать!';
$lang['dashboard_logbooks_warning'] = 'У вас нет аппаратного журнала! Перейдите <a href="'. site_url('logbooks') . '">сюда</a>, чтобы создать его!';
$lang['dashboard_locations_warning'] = 'У вас нет расположений станций! Перейдите <a href="'. site_url('stationsetup') . '">сюда</a>, чтобы создать!';
$lang['dashboard_logbooks_warning'] = 'У вас нет аппаратного журнала! Перейдите <a href="'. site_url('stationsetup') . '">сюда</a>, чтобы создать его!';
$lang['hams_at_no_activations_found'] = 'не найдены предстоящие активации. Проверьте позже.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Аккаунт';
$lang['menu_station_logbooks'] = 'Аппаратные журналы';
$lang['menu_station_locations'] = 'Расположения станции';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Диапазоны';
$lang['menu_adif_import_export'] = 'Импорт / экспорт ADIF';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Обновлено.';
$lang['station_location_warning'] = 'Внимание. Вам нужно установить активное расположение станции. Перейдите в меню Позывной->Расположение станции, чтобы выбрать.';
$lang['station_location_reassign_at'] = 'Пожалуйста, переназначьте их в ';
$lang['station_location_warning_reassign'] = 'Из-за недавних изменений в Wavelog вам нужно переназначить QSO вашим профилям станции.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Название профиля';
$lang['station_location_name_hint'] = 'Короткое название профиля расположения станции, к примеру: Home (HM54ip)';
$lang['station_location_callsign'] = 'Позывной станции';

View File

@@ -228,8 +228,8 @@ $lang['general_word_today'] = 'Hoy';
$lang['dashboard_php_version_warning'] = 'Necesita actualizar su versión de PHP. La versión mínima es 7.4. Su versión es ';
$lang['dashboard_country_files_warning'] = 'Necesita actualizar su archivo de países. ¡Haga clic <a href="'.site_url('update').'">aquí</a> para hacerlo!';
$lang['dashboard_locations_warning'] = 'No tiene localizaciones de estaciones. ¡Haga clic <a href="'. site_url('station') . '">aquí</a> para crear una!';
$lang['dashboard_logbooks_warning'] = 'No tiene libro de guardias. ¡Haga clic <a href="'. site_url('logbooks') . '">aquí</a> para crear uno!';
$lang['dashboard_locations_warning'] = 'No tiene localizaciones de estaciones. ¡Haga clic <a href="'. site_url('stationsetup') . '">aquí</a> para crear una!';
$lang['dashboard_logbooks_warning'] = 'No tiene libro de guardias. ¡Haga clic <a href="'. site_url('stationsetup') . '">aquí</a> para crear uno!';
$lang['hams_at_no_activations_found'] = 'No hay activaciones próximas. Por favor vuelve a revisar más tarde.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Actualizada.';
$lang['station_location_warning'] = 'Atención: Debe configurar una Localización de Estación como activa. vaya a Indicativo->Localización de Estación para seleccionar una.';
$lang['station_location_reassign_at'] = 'Por favor, reasignelas en ';
$lang['station_location_warning_reassign'] = 'Debido a cambios recientes en Wavelog, debe reasignar sus QSO a sus perfiles de estación.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Nombre de Perfil';
$lang['station_location_name_hint'] = 'Nombre corto para la Localización de Estación. Ejemplo: Casa (HM54ip)';
$lang['station_location_callsign'] = 'Indicativo de la Estación';

View File

@@ -1,236 +1,237 @@
<<<<<<< HEAD
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['error_no_active_station_profile'] = 'OBS! Du behöver ange en aktiv station location.';
$lang['notice_turn_the_radio_on'] = 'Inga QSOn idag - dags att slå på radion!';
$lang['general_word_important'] = 'Viktigt';
$lang['general_word_warning'] = 'Warning';
$lang['general_word_danger'] = 'DANGER';
$lang['general_word_maintenance'] = 'Maintenance';
$lang['general_word_info'] = 'Info';
$lang['general_word_please_wait'] = "Please Wait ...";
$lang['general_word_choose_file'] = 'Välj fil';
$lang['general_word_next'] = 'Next';
$lang['general_word_previous'] = 'Previous';
$lang['general_word_not_display'] = "Not display";
$lang['general_word_show'] = "Show";
$lang['general_word_icon'] = "Icon";
$lang['general_word_cancel'] = "Cancel";
$lang['general_word_ok'] = "OK";
$lang['general_word_attention'] = "Attention";
$lang['general_word_enabled'] = "Enabled";
$lang['general_word_disabled'] = "Disabled";
$lang['general_word_count'] = "Count";
$lang['general_word_filtering_on'] = "Filtering on";
$lang['general_word_never'] = "Never";
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['error_no_active_station_profile'] = 'OBS! Du behöver ange en aktiv station location.';
$lang['notice_turn_the_radio_on'] = 'Inga QSOn idag - dags att slå på radion!';
$lang['general_word_important'] = 'Viktigt';
$lang['general_word_warning'] = 'Warning';
$lang['general_word_danger'] = 'DANGER';
$lang['general_word_maintenance'] = 'Maintenance';
$lang['general_word_info'] = 'Info';
$lang['general_word_please_wait'] = "Please Wait ...";
$lang['general_word_choose_file'] = 'Välj fil';
$lang['general_word_next'] = 'Next';
$lang['general_word_previous'] = 'Previous';
$lang['general_word_not_display'] = "Not display";
$lang['general_word_show'] = "Show";
$lang['general_word_icon'] = "Icon";
$lang['general_word_cancel'] = "Cancel";
$lang['general_word_ok'] = "OK";
$lang['general_word_attention'] = "Attention";
$lang['general_word_enabled'] = "Enabled";
$lang['general_word_disabled'] = "Disabled";
$lang['general_word_count'] = "Count";
$lang['general_word_filtering_on'] = "Filtering on";
$lang['general_word_never'] = "Never";
$lang['general_word_active'] = "Active";
$lang['general_word_inactive'] = "Inactive";
$lang['general_word_export'] = "Export";
$lang['general_word_import'] = "Import";
$lang['general_word_startdate'] = "Start Date";
$lang['general_word_enddate'] = "End Date";
$lang['general_word_date'] = 'Datum';
$lang['general_word_time'] = 'Tid';
$lang['general_word_time_on'] = 'Time on';
$lang['general_word_time_off'] = 'Time off';
$lang['general_word_datetime'] = 'Datum/Tid';
$lang['general_word_none'] = 'Ingen';
$lang['general_word_name'] = 'Namn';
$lang['general_word_location'] = 'QTH';
$lang['general_word_comment'] = 'Notering';
$lang['general_word_general'] = 'Allmänt';
$lang['general_word_satellite'] = 'Satellit';
$lang['general_word_satellite_short'] = 'Sat';
$lang['general_word_notes'] = 'Anteckningar';
$lang['general_word_country'] = 'Land';
$lang['general_word_city'] = 'City';
$lang['general_word_total'] = 'Totalt';
$lang['general_word_day'] = "Day";
$lang['general_word_days'] = "Days";
$lang['general_word_period'] = "Period";
$lang['general_word_yearly'] = "Yearly";
$lang['general_word_monthly'] = "Monthly";
$lang['general_word_year'] = 'I år';
$lang['general_word_month'] = 'Denna månad';
$lang['general_word_colors'] = "Colors";
$lang['general_word_light'] = "Light/Laser";
$lang['general_word_worked'] = 'Körda';
$lang['general_word_worked_not_confirmed'] = "Worked not confirmed";
$lang['general_word_confirmation'] = "Confirmation";
$lang['general_word_not_worked'] = "Not worked";
$lang['general_word_confirmed'] = 'Bekräftade';
$lang['general_word_needed'] = 'Behövs';
$lang['general_word_all'] = 'All';
$lang['general_word_no'] = 'Nej';
$lang['general_word_yes'] = 'Ja';
$lang['general_word_method'] = 'Metod';
$lang['general_word_sent'] = 'Skickad';
$lang['general_word_received'] = 'Mottagen';
$lang['general_word_requested'] = 'Begärd';
$lang['general_word_queued'] = 'Köad';
$lang['general_word_table'] = "Table";
$lang['general_word_invalid_ignore'] = 'Invalid (Ignore)';
$lang['general_word_qslcard'] = 'QSL-kort';
$lang['general_word_qslcard_management'] = 'QSL Management';
$lang['general_word_qslcards'] = 'QSL-kort';
$lang['general_word_qslcard_direct'] = 'Direkt';
$lang['general_word_qslcard_bureau'] = 'Byrå';
$lang['general_word_qslcard_electronic'] = 'Elektronisk';
$lang['general_word_qslcard_manager'] = 'Manager';
$lang['general_word_qslcard_via'] = 'Via';
$lang['general_word_eqslcard'] = 'eQSL Card';
$lang['general_word_eqslcards'] = 'eQSL Cards';
$lang['general_word_lotw'] = 'Logbook of the World';
$lang['general_word_lotw_short'] = 'LoTW';
$lang['general_word_details'] = 'Details';
$lang['general_word_qso_data'] = 'QSO Data';
$lang['general_edit_qso'] = 'Redigera QSO';
$lang['general_mark_qsl_rx_bureau'] = 'Ange QSL mottagen (Byrå)';
$lang['general_mark_qsl_rx_direct'] = 'Ange QSL mottagen (Direkt)';
$lang['general_mark_qsl_rx_electronic'] = 'Ange QSL mottagen (Elektronisk)';
$lang['general_mark_qsl_tx_bureau'] = 'Ange QSL skickad (Byrå)';
$lang['general_mark_qsl_tx_direct'] = 'Ange QSL skickad (Direkt)';
$lang['general_mark_qsl_requested'] = 'Ange QSL Karta Begärda';
$lang['general_mark_qsl_requested_bureau'] = 'Ange QSL Karta Begärda (Byrå)';
$lang['general_mark_qsl_requested_direct'] = 'Ange QSL Karta Begärda (Direkt)';
$lang['general_mark_qsl_not_required'] = 'Ange QSL Karta Inte Nödvändig';
$lang['general_delete_qso'] = 'Radera QSO';
$lang['general_more_qso'] = 'More QSOs';
$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_total_distance'] = 'Totalt avstånd';
// PHP Upload Warning
$lang['gen_max_file_upload_size'] = 'Maximum file upload size is ';
// Wavelog Terms
$lang['wavelog_station_profile'] = 'Stationsplats';
// ham radio terms
$lang['gen_hamradio_cq'] = "CQ";
$lang['gen_hamradio_qso'] = 'QSO';
$lang['gen_hamradio_station'] = 'Station';
$lang['gen_hamradio_call'] = 'Signal';
$lang['gen_hamradio_prefix'] = "Prefix";
$lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_callsign'] = 'Signal';
$lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode';
$lang['general_word_export'] = "Export";
$lang['general_word_import'] = "Import";
$lang['general_word_startdate'] = "Start Date";
$lang['general_word_enddate'] = "End Date";
$lang['general_word_date'] = 'Datum';
$lang['general_word_time'] = 'Tid';
$lang['general_word_time_on'] = 'Time on';
$lang['general_word_time_off'] = 'Time off';
$lang['general_word_datetime'] = 'Datum/Tid';
$lang['general_word_none'] = 'Ingen';
$lang['general_word_name'] = 'Namn';
$lang['general_word_location'] = 'QTH';
$lang['general_word_comment'] = 'Notering';
$lang['general_word_general'] = 'Allmänt';
$lang['general_word_satellite'] = 'Satellit';
$lang['general_word_satellite_short'] = 'Sat';
$lang['general_word_notes'] = 'Anteckningar';
$lang['general_word_country'] = 'Land';
$lang['general_word_city'] = 'City';
$lang['general_word_total'] = 'Totalt';
$lang['general_word_day'] = "Day";
$lang['general_word_days'] = "Days";
$lang['general_word_period'] = "Period";
$lang['general_word_yearly'] = "Yearly";
$lang['general_word_monthly'] = "Monthly";
$lang['general_word_year'] = 'I år';
$lang['general_word_month'] = 'Denna månad';
$lang['general_word_colors'] = "Colors";
$lang['general_word_light'] = "Light/Laser";
$lang['general_word_worked'] = 'Körda';
$lang['general_word_worked_not_confirmed'] = "Worked not confirmed";
$lang['general_word_confirmation'] = "Confirmation";
$lang['general_word_not_worked'] = "Not worked";
$lang['general_word_confirmed'] = 'Bekräftade';
$lang['general_word_needed'] = 'Behövs';
$lang['general_word_all'] = 'All';
$lang['general_word_no'] = 'Nej';
$lang['general_word_yes'] = 'Ja';
$lang['general_word_method'] = 'Metod';
$lang['general_word_sent'] = 'Skickad';
$lang['general_word_received'] = 'Mottagen';
$lang['general_word_requested'] = 'Begärd';
$lang['general_word_queued'] = 'Köad';
$lang['general_word_table'] = "Table";
$lang['general_word_invalid_ignore'] = 'Invalid (Ignore)';
$lang['general_word_qslcard'] = 'QSL-kort';
$lang['general_word_qslcard_management'] = 'QSL Management';
$lang['general_word_qslcards'] = 'QSL-kort';
$lang['general_word_qslcard_direct'] = 'Direkt';
$lang['general_word_qslcard_bureau'] = 'Byrå';
$lang['general_word_qslcard_electronic'] = 'Elektronisk';
$lang['general_word_qslcard_manager'] = 'Manager';
$lang['general_word_qslcard_via'] = 'Via';
$lang['general_word_eqslcard'] = 'eQSL Card';
$lang['general_word_eqslcards'] = 'eQSL Cards';
$lang['general_word_lotw'] = 'Logbook of the World';
$lang['general_word_lotw_short'] = 'LoTW';
$lang['general_word_details'] = 'Details';
$lang['general_word_qso_data'] = 'QSO Data';
$lang['general_edit_qso'] = 'Redigera QSO';
$lang['general_mark_qsl_rx_bureau'] = 'Ange QSL mottagen (Byrå)';
$lang['general_mark_qsl_rx_direct'] = 'Ange QSL mottagen (Direkt)';
$lang['general_mark_qsl_rx_electronic'] = 'Ange QSL mottagen (Elektronisk)';
$lang['general_mark_qsl_tx_bureau'] = 'Ange QSL skickad (Byrå)';
$lang['general_mark_qsl_tx_direct'] = 'Ange QSL skickad (Direkt)';
$lang['general_mark_qsl_requested'] = 'Ange QSL Karta Begärda';
$lang['general_mark_qsl_requested_bureau'] = 'Ange QSL Karta Begärda (Byrå)';
$lang['general_mark_qsl_requested_direct'] = 'Ange QSL Karta Begärda (Direkt)';
$lang['general_mark_qsl_not_required'] = 'Ange QSL Karta Inte Nödvändig';
$lang['general_delete_qso'] = 'Radera QSO';
$lang['general_more_qso'] = 'More QSOs';
$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_total_distance'] = 'Totalt avstånd';
// PHP Upload Warning
$lang['gen_max_file_upload_size'] = 'Maximum file upload size is ';
// Wavelog Terms
$lang['wavelog_station_profile'] = 'Stationsplats';
// ham radio terms
$lang['gen_hamradio_cq'] = "CQ";
$lang['gen_hamradio_qso'] = 'QSO';
$lang['gen_hamradio_station'] = 'Station';
$lang['gen_hamradio_call'] = 'Signal';
$lang['gen_hamradio_prefix'] = "Prefix";
$lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_callsign'] = 'Signal';
$lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Skickat';
$lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d';
$lang['gen_hamradio_band'] = 'Band';
$lang['gen_hamradio_bandgroup'] = "Bandgroup";
$lang['gen_hamradio_band_rx'] = 'Band (RX)';
$lang['gen_hamradio_frequency'] = 'Frekvens';
$lang['gen_hamradio_frequency_rx'] = 'Frekvens (RX)';
$lang['gen_hamradio_radio'] = 'Radio';
$lang['gen_hamradio_rsts'] = 'RST (S)';
$lang['gen_hamradio_rstr'] = 'RST (R)';
$lang['gen_hamradio_refs'] = 'Refs';
$lang['gen_hamradio_myrefs'] = 'My Refs';
$lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)';
$lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)';
$lang['gen_hamradio_qsl'] = 'QSL';
$lang['gen_hamradio_qsltype'] = "QSL Type";
$lang['gen_hamradio_qslvia'] = 'QSL via';
$lang['gen_hamradio_qslmsg'] = 'QSL Msg';
$lang['gen_hamradio_locator'] = 'Lokator';
$lang['gen_hamradio_transmit_power'] = 'Effekt (W)';
$lang['gen_hamradio_propagation_mode'] = 'Propagation Mode';
$lang['gen_hamradio_satellite_name'] = 'Satellitnamn';
$lang['gen_hamradio_satellite_mode'] = 'Satellite-mode';
$lang['gen_hamradio_award'] = "Award";
$lang['gen_hamradio_rst_sent'] = 'Skickat';
$lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d';
$lang['gen_hamradio_band'] = 'Band';
$lang['gen_hamradio_bandgroup'] = "Bandgroup";
$lang['gen_hamradio_band_rx'] = 'Band (RX)';
$lang['gen_hamradio_frequency'] = 'Frekvens';
$lang['gen_hamradio_frequency_rx'] = 'Frekvens (RX)';
$lang['gen_hamradio_radio'] = 'Radio';
$lang['gen_hamradio_rsts'] = 'RST (S)';
$lang['gen_hamradio_rstr'] = 'RST (R)';
$lang['gen_hamradio_refs'] = 'Refs';
$lang['gen_hamradio_myrefs'] = 'My Refs';
$lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)';
$lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)';
$lang['gen_hamradio_qsl'] = 'QSL';
$lang['gen_hamradio_qsltype'] = "QSL Type";
$lang['gen_hamradio_qslvia'] = 'QSL via';
$lang['gen_hamradio_qslmsg'] = 'QSL Msg';
$lang['gen_hamradio_locator'] = 'Lokator';
$lang['gen_hamradio_transmit_power'] = 'Effekt (W)';
$lang['gen_hamradio_propagation_mode'] = 'Propagation Mode';
$lang['gen_hamradio_satellite_name'] = 'Satellitnamn';
$lang['gen_hamradio_satellite_mode'] = 'Satellite-mode';
$lang['gen_hamradio_award'] = "Award";
$lang['gen_hamradio_active_logbook_hint'] = "Displaying all QSOs of station locations which are linked to this logbook";
$lang['gen_hamradio_logbook'] = 'Loggbok';
$lang['gen_hamradio_active_logbook'] = 'Active Logbook';
$lang['gen_hamradio_zones'] = 'Zones';
$lang['gen_hamradio_cq_zone'] = 'CQ Zone';
$lang['gen_hamradio_itu_zone'] = 'ITU Zone';
$lang['gen_hamradio_dxcc'] = 'DXCC';
$lang['gen_hamradio_deleted_dxcc'] = 'Struket DXCC';
$lang['gen_hamradio_continent'] = 'Kontinent';
$lang['gen_hamradio_usa_state'] = 'USA State';
$lang['gen_hamradio_county_reference'] = 'USA County';
$lang['gen_hamradio_iota_reference'] = 'IOTA Reference';
$lang['gen_hamradio_sota_reference'] = 'SOTA Reference';
$lang['gen_hamradio_wwff_reference'] = 'WWFF Reference';
$lang['gen_hamradio_pota_reference'] = 'POTA Reference';
$lang['gen_hamradio_dok'] = 'DOK';
$lang['gen_hamradio_state'] = 'State';
$lang['gen_hamradio_iota'] = 'IOTA';
$lang['gen_hamradio_sota'] = 'SOTA';
$lang['gen_hamradio_wwff'] = 'WWFF';
$lang['gen_hamradio_pota'] = 'POTA';
$lang['gen_hamradio_gridsquare'] = 'Lokator/Gridsquare';
$lang['gen_hamradio_latitude'] = "Latitude";
$lang['gen_hamradio_longitude'] = "Longitude";
$lang['gen_hamradio_bearing'] = "Bearing";
$lang['gen_hamradio_get_gridsquare'] = 'Get Gridsquare';
$lang['gen_hamradio_gridsquare_show'] = "Show Locator";
$lang['gen_hamradio_distance'] = 'Distance';
$lang['gen_hamradio_operator'] = 'Operatör';
$lang['gen_hamradio_sig'] = 'Sig';
$lang['gen_hamradio_sig_info'] = 'Sig Info';
// Find your CQ/ITU Zone
$lang['gen_find_zone_cq_part1'] = "If you don't know your CQ Zone then";
$lang['gen_find_zone_itu_part1'] = "If you don't know your ITU Zone then";
$lang['gen_find_zone_part2'] = "click here";
$lang['gen_find_zone_part3'] = "to find it!";
// Dashboard Words
$lang['dashboard_you_have_had'] = 'Du har kört';
$lang['dashboard_qsos_today'] = 'QSOs idag!';
$lang['dashboard_qso_breakdown'] = 'QSOs Breakdown';
$lang['dashboard_countries_breakdown'] = 'Länder Breakdown';
$lang['gen_to_date'] = 'To date';
$lang['gen_from_date'] = 'Från datum';
$lang['gen_this_qso_was_confirmed_on'] = 'Detta QSO blev konfirmerat';
$lang['error_no_logbook_found'] = 'Ingen loggbok hittades. Du måste konfigurera en loggbok under Station Logbooks. Gör det här:';
$lang['copy_to_clipboard'] = 'Kopiera till clipboard';
$lang['africa'] = 'Afrika';
$lang['antarctica'] = 'Antarktis';
$lang['asia'] = 'Asien';
$lang['europe'] = 'Europa';
$lang['northamerica'] = 'Nordamerika';
$lang['oceania'] = 'Oceanien';
$lang['southamerica'] = 'Sydamerika';
$lang['gen_band_selection'] = 'Band val';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";
$lang['gen_hamradio_logbook'] = 'Loggbok';
$lang['gen_hamradio_active_logbook'] = 'Active Logbook';
$lang['gen_hamradio_zones'] = 'Zones';
$lang['gen_hamradio_cq_zone'] = 'CQ Zone';
$lang['gen_hamradio_itu_zone'] = 'ITU Zone';
$lang['gen_hamradio_dxcc'] = 'DXCC';
$lang['gen_hamradio_deleted_dxcc'] = 'Struket DXCC';
$lang['gen_hamradio_continent'] = 'Kontinent';
$lang['gen_hamradio_usa_state'] = 'USA State';
$lang['gen_hamradio_county_reference'] = 'USA County';
$lang['gen_hamradio_iota_reference'] = 'IOTA Reference';
$lang['gen_hamradio_sota_reference'] = 'SOTA Reference';
$lang['gen_hamradio_wwff_reference'] = 'WWFF Reference';
$lang['gen_hamradio_pota_reference'] = 'POTA Reference';
$lang['gen_hamradio_dok'] = 'DOK';
$lang['gen_hamradio_state'] = 'State';
$lang['gen_hamradio_iota'] = 'IOTA';
$lang['gen_hamradio_sota'] = 'SOTA';
$lang['gen_hamradio_wwff'] = 'WWFF';
$lang['gen_hamradio_pota'] = 'POTA';
$lang['gen_hamradio_gridsquare'] = 'Lokator/Gridsquare';
$lang['gen_hamradio_latitude'] = "Latitude";
$lang['gen_hamradio_longitude'] = "Longitude";
$lang['gen_hamradio_bearing'] = "Bearing";
$lang['gen_hamradio_get_gridsquare'] = 'Get Gridsquare';
$lang['gen_hamradio_gridsquare_show'] = "Show Locator";
$lang['gen_hamradio_distance'] = 'Distance';
$lang['gen_hamradio_operator'] = 'Operatör';
$lang['gen_hamradio_sig'] = 'Sig';
$lang['gen_hamradio_sig_info'] = 'Sig Info';
// Find your CQ/ITU Zone
$lang['gen_find_zone_cq_part1'] = "If you don't know your CQ Zone then";
$lang['gen_find_zone_itu_part1'] = "If you don't know your ITU Zone then";
$lang['gen_find_zone_part2'] = "click here";
$lang['gen_find_zone_part3'] = "to find it!";
// Dashboard Words
$lang['dashboard_you_have_had'] = 'Du har kört';
$lang['dashboard_qsos_today'] = 'QSOs idag!';
$lang['dashboard_qso_breakdown'] = 'QSOs Breakdown';
$lang['dashboard_countries_breakdown'] = 'Länder Breakdown';
$lang['gen_to_date'] = 'To date';
$lang['gen_from_date'] = 'Från datum';
$lang['gen_this_qso_was_confirmed_on'] = 'Detta QSO blev konfirmerat';
$lang['error_no_logbook_found'] = 'Ingen loggbok hittades. Du måste konfigurera en loggbok under Station Logbooks. Gör det här:';
$lang['copy_to_clipboard'] = 'Kopiera till clipboard';
$lang['africa'] = 'Afrika';
$lang['antarctica'] = 'Antarktis';
$lang['asia'] = 'Asien';
$lang['europe'] = 'Europa';
$lang['northamerica'] = 'Nordamerika';
$lang['oceania'] = 'Oceanien';
$lang['southamerica'] = 'Sydamerika';
$lang['gen_band_selection'] = 'Band val';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Konto';
$lang['menu_station_logbooks'] = 'Stationsloggböcker';
$lang['menu_station_locations'] = 'Stationsplatser';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -1,16 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_modify_eQSL_url extends CI_Migration {
public function up()
{
$sql = "UPDATE config SET eqsl_download_url = 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm' WHERE id=1";
$this->db->query($sql);
}
public function down()
{
// Will not go back to insecure connections
}
}
?>

View File

@@ -0,0 +1,17 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_modify_eqsl extends CI_Migration {
public function up()
{
$this->db->where('id', '1');
$this->db->update('config', array('eqsl_download_url' => 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm'));
}
public function down()
{
// Will not go back to insecure connections
}
}

View File

@@ -0,0 +1,67 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_harmonize_keys extends CI_Migration {
public function up() {
$this->db->query("update ".$this->config->item('table_name')." set station_id=0 where station_id is null;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." ENGINE=InnoDB;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `station_id` `station_id` INT(10) UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `COL_PRIMARY_KEY` `COL_PRIMARY_KEY` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." AUTO_INCREMENT=".$this->get_max_from_tbl($this->config->item('table_name'),"`COL_PRIMARY_KEY`").";");
$this->db->query("ALTER TABLE `station_profile` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `users` CHANGE COLUMN `user_id` `user_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT;");
$this->db->query("ALTER TABLE `users` AUTO_INCREMENT=".$this->get_max_from_tbl("`users`","user_id").";");
$this->db->query("ALTER TABLE `station_logbooks_relationship` CHANGE COLUMN `logbook_relation_id` `logbook_relation_id` INT UNSIGNED NOT NULL AUTO_INCREMENT, CHANGE COLUMN `station_logbook_id` `station_logbook_id` INT UNSIGNED NOT NULL, CHANGE COLUMN `station_location_id` `station_location_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `station_logbooks_relationship` AUTO_INCREMENT=".$this->get_max_from_tbl("`station_logbooks_relationship`","logbook_relation_id").";");
$this->db->query("ALTER TABLE `station_logbooks` CHANGE COLUMN `logbook_id` `logbook_id` INT UNSIGNED NOT NULL AUTO_INCREMENT, CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `station_logbooks` AUTO_INCREMENT=".$this->get_max_from_tbl("`station_logbooks`","logbook_id").";");
$this->db->query("ALTER TABLE `user_options` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `oqrs` CHANGE COLUMN `station_id` `station_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `notes` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `lotw_certs` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `label_types` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("update `paper_types` set user_id=0 where user_id=-1;"); // Make user_id 0 as template for papers
$this->db->query("ALTER TABLE `paper_types` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `eQSL_images` CHANGE COLUMN `qso_id` `qso_id` BIGINT(20) UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `contest_session` CHANGE COLUMN `station_id` `station_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `qsl_images` CHANGE COLUMN `qsoid` `qsoid` BIGINT(20) UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `contest_session` CHANGE COLUMN `station_id` `station_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `cat` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `api` CHANGE COLUMN `user_id` `user_id` INT UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `bandxuser` CHANGE COLUMN `active` `active` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `cq` `cq` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `dok` `dok` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `dxcc` `dxcc` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `iota` `iota` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `sig` `sig` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `sota` `sota` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `uscounties` `uscounties` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `was` `was` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `vucc` `vucc` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `wwff` `wwff` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `pota` `pota` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `waja` `waja` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `rac` `rac` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `helvetia` `helvetia` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 , CHANGE COLUMN `jcc` `jcc` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1;");
}
public function down(){
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." ENGINE=MyISAM;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `station_id` `station_id` INT(11) NOT NULL;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." CHANGE COLUMN `COL_PRIMARY_KEY` `COL_PRIMARY_KEY` INT UNSIGNED NOT NULL AUTO_INCREMENT;");
$this->db->query("ALTER TABLE ".$this->config->item('table_name')." AUTO_INCREMENT=".$this->get_max_from_tbl($this->config->item('table_name'),"`COL_PRIMARY_KEY`").";");
$this->db->query("ALTER TABLE `station_profile` CHANGE COLUMN `user_id` `user_id` BIGINT(20) DEFAULT NULL;");
$this->db->query("ALTER TABLE `station_logbooks_relationship` CHANGE COLUMN `logbook_relation_id` `logbook_relation_id` BIGINT(20) NOT NULL AUTO_INCREMENT, CHANGE COLUMN `station_logbook_id` `station_logbook_id` BIGINT(20) NOT NULL, CHANGE COLUMN `station_location_id` `station_location_id` BIGINT(20) NOT NULL;");
$this->db->query("ALTER TABLE `station_logbooks_relationship` AUTO_INCREMENT=".$this->get_max_from_tbl("`station_logbooks_relationship`","logbook_relation_id").";");
$this->db->query("ALTER TABLE `station_logbooks` CHANGE COLUMN `logbook_id` `logbook_id` BIGINT(20) NOT NULL AUTO_INCREMENT, CHANGE COLUMN `user_id` `user_id` BIGINT(20) NOT NULL;");
$this->db->query("ALTER TABLE `station_logbooks` AUTO_INCREMENT=".$this->get_max_from_tbl("`station_logbooks`","logbook_id").";");
$this->db->query("ALTER TABLE `user_options` CHANGE COLUMN `user_id` `user_id` INT NOT NULL;");
$this->db->query("ALTER TABLE `oqrs` CHANGE COLUMN `station_id` `station_id` INT NOT NULL;");
$this->db->query("ALTER TABLE `notes` CHANGE COLUMN `user_id` `user_id` BIGINT(20) NULL DEFAULT NULL;");
$this->db->query("ALTER TABLE `lotw_certs` CHANGE COLUMN `user_id` `user_id` INT NULL DEFAULT NULL;");
$this->db->query("ALTER TABLE `label_types` CHANGE COLUMN `user_id` `user_id` INT(5) NULL DEFAULT NULL;");
$this->db->query("ALTER TABLE `paper_types` CHANGE COLUMN `user_id` `user_id` INT(5) NULL DEFAULT NULL;");
$this->db->query("update `paper_types` set user_id=-1 where user_id=0;");
$this->db->query("ALTER TABLE `eQSL_images` CHANGE COLUMN `qso_id` `qso_id` VARCHAR(250) NOT NULL;");
$this->db->query("ALTER TABLE `contest_session` CHANGE COLUMN `station_id` `station_id` BIGINT(20) UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `qsl_images` CHANGE COLUMN `qsoid` `qsoid` INT NULL;");
$this->db->query("ALTER TABLE `contest_session` CHANGE COLUMN `station_id` `station_id` BIGINT(20) UNSIGNED NOT NULL;");
$this->db->query("ALTER TABLE `cat` CHANGE COLUMN `user_id` `user_id` BIGINT(20) NULL;");
$this->db->query("ALTER TABLE `api` CHANGE COLUMN `user_id` `user_id` BIGINT(20) NULL;");
$this->db->query("ALTER TABLE `users` CHANGE COLUMN `user_id` `user_id` INT(11) NOT NULL AUTO_INCREMENT;");
}
function get_max_from_tbl($tbl,$col) {
$query = $this->db->query("select max(".$col.") as MAXI from ".$tbl.";");
$row = $query->row();
return $row->MAXI ?? 0;
}
}

View File

@@ -260,9 +260,11 @@ 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',
'helvetia' => $band['helvetia'] == "true" ? '1' : '0',
'iota' => $band['iota'] == "true" ? '1' : '0',
'jcc' => $band['jcc'] == "true" ? '1' : '0',
'pota' => $band['pota'] == "true" ? '1' : '0',
'rac' => $band['rac'] == "true" ? '1' : '0',
'sig' => $band['sig'] == "true" ? '1' : '0',
'sota' => $band['sota'] == "true" ? '1' : '0',
'uscounties' => $band['uscounties'] == "true" ? '1' : '0',
@@ -308,8 +310,8 @@ class Bands extends CI_Model {
$this->db->insert('bands', $data);
}
$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);");
$this->db->query("insert into bandxuser (bandid, userid)
select bands.id, " . $this->session->userdata('user_id') . " 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) {

View File

@@ -5,101 +5,103 @@ use Wavelog\Dxcc\Dxcc;
class Dxcluster_model extends CI_Model {
public function dxc_spotlist($band = '20m', $maxage = 60, $de = '') {
$this->load->helper(array('psr4_autoloader'));
$CI =& get_instance();
if ( ($this->optionslib->get_option('dxcache_url') != '') ) {
if($CI->session->userdata('user_date_format')) {
$custom_date_format = $CI->session->userdata('user_date_format');
} else {
$custom_date_format = $CI->config->item('qso_date_format');
}
if ($band == "All") {
$dxcache_url = $this->optionslib->get_option('dxcache_url').'/spots/';
} else {
$dxcache_url = $this->optionslib->get_option('dxcache_url').'/spots/'.$band;
}
$CI->load->model('logbooks_model');
$CI->load->model('logbook_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
if($this->session->userdata('user_date_format')) {
$custom_date_format = $this->session->userdata('user_date_format');
} else {
$custom_date_format = $this->config->item('qso_date_format');
}
$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());
$dxcache_url = ($this->optionslib->get_option('dxcache_url') == '' ? 'https://dxc.jo30.de/dxcache' : $this->optionslib->get_option('dxcache_url'));
$dxccObj = new DXCC($date);
if ($band == "All") {
$dxcache_url = $dxcache_url . '/spots/';
} else {
$dxcache_url = $dxcache_url . '/spots/'.$band;
}
// $this->load->model('logbooks_model'); lives in the autoloader
$this->load->model('logbook_model');
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
// Create JSON object
if (strlen($jsonraw)>20) {
$spotsout=[];
foreach($json as $singlespot){
$spotband = $CI->frequency->GetBand($singlespot->frequency*1000);
$singlespot->band=$spotband;
if (($band != 'All') && ($band != $spotband)) { continue; }
$datetimecurrent = new DateTime("now", new DateTimeZone('UTC')); // Today's Date/Time
$datetimespot = new DateTime($singlespot->when, new DateTimeZone('UTC'));
$spotage = $datetimecurrent->diff($datetimespot);
$minutes = $spotage->days * 24 * 60;
$minutes += $spotage->h * 60;
$minutes += $spotage->i;
$singlespot->age=$minutes;
$singlespot->when_pretty=date($custom_date_format . " H:i", strtotime($singlespot->when));
$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());
if ($minutes<=$maxage) {
if (!(property_exists($singlespot,'dxcc_spotted'))) { // Check if we already have dxcc of spotted
$dxcc=$dxccObj->dxcc_lookup($singlespot->spotted,date('Ymd', time()));
$singlespot->dxcc_spotted->dxcc_id=$dxcc['adif'];
$singlespot->dxcc_spotted->cont=$dxcc['cont'];
$singlespot->dxcc_spotted->flag='';
$singlespot->dxcc_spotted->entity=$dxcc['entity'];
}
if (!(property_exists($singlespot,'dxcc_spotter'))) { // Check if we already have dxcc of spotter
$dxcc=$dxccObj->dxcc_lookup($singlespot->spotter,date('Ymd', time()));
$singlespot->dxcc_spotter->dxcc_id=$dxcc['adif'];
$singlespot->dxcc_spotter->cont=$dxcc['cont'];
$singlespot->dxcc_spotter->flag='';
$singlespot->dxcc_spotter->entity=$dxcc['entity'];
}
if ( ($de != '') && ($de != 'Any') && (property_exists($singlespot->dxcc_spotter,'cont')) ){ // If we have a "de continent" and a filter-wish filter on that
if (strtolower($de) == strtolower($singlespot->dxcc_spotter->cont ?? '')) {
$singlespot->worked_dxcc = ($this->logbook_model->check_if_dxcc_worked_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_dxcc = ($this->logbook_model->check_if_dxcc_cnfmd_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->worked_call = ($this->logbook_model->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_call = ($this->logbook_model->check_if_callsign_cnfmd_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
array_push($spotsout,$singlespot);
}
} else { // No de continent? No Filter --> Just push
$dxccObj = new DXCC($date);
// Create JSON object
if (strlen($jsonraw)>20) {
$spotsout=[];
foreach($json as $singlespot){
$spotband = $this->frequency->GetBand($singlespot->frequency*1000);
$singlespot->band=$spotband;
if (($band != 'All') && ($band != $spotband)) { continue; }
$datetimecurrent = new DateTime("now", new DateTimeZone('UTC')); // Today's Date/Time
$datetimespot = new DateTime($singlespot->when, new DateTimeZone('UTC'));
$spotage = $datetimecurrent->diff($datetimespot);
$minutes = $spotage->days * 24 * 60;
$minutes += $spotage->h * 60;
$minutes += $spotage->i;
$singlespot->age=$minutes;
$singlespot->when_pretty=date($custom_date_format . " H:i", strtotime($singlespot->when));
if ($minutes<=$maxage) {
if (!(property_exists($singlespot,'dxcc_spotted'))) { // Check if we already have dxcc of spotted
$dxcc=$dxccObj->dxcc_lookup($singlespot->spotted,date('Ymd', time()));
$singlespot->dxcc_spotted->dxcc_id=$dxcc['adif'];
$singlespot->dxcc_spotted->cont=$dxcc['cont'];
$singlespot->dxcc_spotted->flag='';
$singlespot->dxcc_spotted->entity=$dxcc['entity'];
}
if (!(property_exists($singlespot,'dxcc_spotter'))) { // Check if we already have dxcc of spotter
$dxcc=$dxccObj->dxcc_lookup($singlespot->spotter,date('Ymd', time()));
$singlespot->dxcc_spotter->dxcc_id=$dxcc['adif'];
$singlespot->dxcc_spotter->cont=$dxcc['cont'];
$singlespot->dxcc_spotter->flag='';
$singlespot->dxcc_spotter->entity=$dxcc['entity'];
}
if ( ($de != '') && ($de != 'Any') && (property_exists($singlespot->dxcc_spotter,'cont')) ){ // If we have a "de continent" and a filter-wish filter on that
if (strtolower($de) == strtolower($singlespot->dxcc_spotter->cont ?? '')) {
$singlespot->worked_dxcc = ($this->logbook_model->check_if_dxcc_worked_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->worked_call = ($this->logbook_model->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_dxcc = ($this->logbook_model->check_if_dxcc_cnfmd_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->worked_call = ($this->logbook_model->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_call = ($this->logbook_model->check_if_callsign_cnfmd_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
array_push($spotsout,$singlespot);
}
} else { // No de continent? No Filter --> Just push
$singlespot->worked_dxcc = ($this->logbook_model->check_if_dxcc_worked_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->worked_call = ($this->logbook_model->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_dxcc = ($this->logbook_model->check_if_dxcc_cnfmd_in_logbook($singlespot->dxcc_spotted->dxcc_id, $logbooks_locations_array, $singlespot->band) >= 1);
$singlespot->cnfmd_call = ($this->logbook_model->check_if_callsign_cnfmd_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) >= 1);
array_push($spotsout,$singlespot);
}
}
return ($spotsout);
} else {
return '';
}
return ($spotsout);
} else {
return '';
}
}
public function dxc_qrg_lookup($qrg, $maxage = 120) {
$this->load->helper(array('psr4_autoloader'));
if ( ($this->optionslib->get_option('dxcache_url') != '') && (is_numeric($qrg)) ) {
$dxcache_url = $this->optionslib->get_option('dxcache_url').'/spot/'.$qrg;
if (is_numeric($qrg)) {
$dxcache_url = ($this->optionslib->get_option('dxcache_url') == '' ? 'https://dxc.jo30.de/dxcache' : $this->optionslib->get_option('dxcache_url'));
$dxcache_url = $dxcache_url .'/spot/'.$qrg;
// CURL Functions
$ch = curl_init();

View File

@@ -1038,7 +1038,7 @@ class Logbook_model extends CI_Model {
$entity = $this->get_entity($this->input->post('dxcc_id'));
$stationId = $this->input->post('station_profile');
$country = ucwords(strtolower($entity['name']), "- (/");
$country = ucwords(strtolower($entity['name'] ?? ''), "- (/"); // Prevent Errors, if JS-Fence doesn't help
// be sure that station belongs to user
$this->load->model('stations');
@@ -4513,6 +4513,7 @@ function lotw_last_qsl_date($user_id) {
public function check_for_station_id() {
$this->db->select('COL_PRIMARY_KEY, COL_TIME_ON, COL_CALL, COL_MODE, COL_BAND, COL_STATION_CALLSIGN');
$this->db->where('station_id =', NULL);
$this->db->or_where("station_id",0);
$query = $this->db->get($this->config->item('table_name'));
if($query->num_rows() >= 1) {
return $query->result();
@@ -4571,26 +4572,29 @@ function lotw_last_qsl_date($user_id) {
public function update_station_ids($station_id,$station_callsign,$qsoids) {
if (! empty($qsoids)) {
$data = array(
'station_id' => $station_id,
);
$data = array(
'station_id' => $station_id,
);
$this->db->where_in('COL_PRIMARY_KEY', $qsoids);
$this->db->where(array('station_id' => NULL));
if ($station_callsign == '') {
$this->db->where(array('col_station_callsign' => NULL));
} else {
$this->db->where('col_station_callsign', $station_callsign);
}
$this->db->update($this->config->item('table_name'), $data);
if ($this->db->affected_rows() > 0) {
return TRUE;
} else {
return FALSE;
}
} else {
return FALSE;
}
$this->db->where_in('COL_PRIMARY_KEY', $qsoids);
$this->db->group_start();
$this->db->where(array('station_id' => NULL));
$this->db->or_where(array('station_id' => 0)); // 0 is also unassigned, compare mig_185
$this->db->group_end();
if ($station_callsign == '') {
$this->db->where(array('col_station_callsign' => NULL));
} else {
$this->db->where('col_station_callsign', $station_callsign);
}
$this->db->update($this->config->item('table_name'), $data);
if ($this->db->affected_rows() > 0) {
return TRUE;
} else {
return FALSE;
}
} else {
return FALSE;
}
}
public function parse_frequency($frequency)

View File

@@ -14,25 +14,30 @@ class Logbooks_model extends CI_Model {
return $query->num_rows();
}
function add() {
function add($logbook_name = '') {
// Create data array with field values
$data = array(
'user_id' => $this->session->userdata('user_id'),
'logbook_name' => xss_clean($this->input->post('stationLogbook_Name', true)),
);
if ($logbook_name ?? '' != '') {
$data = array(
'user_id' => $this->session->userdata('user_id'),
'logbook_name' => $logbook_name,
);
// Insert Records
$this->db->insert('station_logbooks', $data);
$logbook_id = $this->db->insert_id();
// Insert Records
$this->db->insert('station_logbooks', $data);
$logbook_id = $this->db->insert_id();
// check if user has no active logbook yet
if ($this->session->userdata('active_station_logbook') === null) {
// set logbook active
$this->set_logbook_active($logbook_id);
// check if user has no active logbook yet
if ($this->session->userdata('active_station_logbook') === null) {
// set logbook active
$this->set_logbook_active($logbook_id);
// update user session data
$this->load->model('user_model');
$this->user_model->update_session($this->session->userdata('user_id'));
// update user session data
$this->load->model('user_model');
$this->user_model->update_session($this->session->userdata('user_id'));
}
return $logbook_id;
} else {
return -1;
}
}
@@ -51,9 +56,8 @@ class Logbooks_model extends CI_Model {
$this->set_logbook_active($logbook_id, $id);
}
function delete($id) {
function delete($clean_id) {
// Clean ID
$clean_id = $this->security->xss_clean($id);
// do not delete active logbook
if ($this->session->userdata('active_station_logbook') === $clean_id) {
@@ -62,7 +66,7 @@ class Logbooks_model extends CI_Model {
// Delete logbook
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('logbook_id', $id);
$this->db->where('logbook_id', $clean_id);
$this->db->delete('station_logbooks');
}

View File

@@ -49,6 +49,17 @@ class Stations extends CI_Model {
return $this->db->get('station_profile');
}
function profile_full($id) {
// Should refactor all calls for profile to profile_full, since it contains also those eqsl-default-msg
$clean_id = $this->security->xss_clean($id);
$this->db->where('station_id', $clean_id);
$row=$this->db->get('station_profile')->row();
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $id))->result();
$row->eqsl_default_qslmsg = $options_object[0]->option_value ?? '';
return $row;
}
function profile_clean($id) {
// Clean ID
$clean_id = $this->security->xss_clean($id);
@@ -123,11 +134,15 @@ class Stations extends CI_Model {
);
// Insert Records & return insert id //
if ($this->db->insert('station_profile', $data)===true) {
$station_user_list = $this->all_of_user()->result();
if ((count($station_user_list)>0) && (isset($station_user_list[intval(count($station_user_list)-1)]->station_id))) {
return $station_user_list[intval(count($station_user_list)-1)]->station_id;
if ($this->db->insert('station_profile', $data)) {
$new_station_id = $this->db->insert_id();
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
if (!empty(trim($eqsl_default_qslmsg))) {
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($new_station_id => $eqsl_default_qslmsg));
}
return $new_station_id;
} else {
return 0;
}
}
@@ -182,6 +197,9 @@ class Stations extends CI_Model {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('station_id', xss_clean($this->input->post('station_id', true)));
$this->db->update('station_profile', $data);
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true) ?? '');
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array(xss_clean($this->input->post('station_id', true)) => $eqsl_default_qslmsg));
}
function delete($id) {
@@ -192,6 +210,7 @@ class Stations extends CI_Model {
if ($clean_id === $this->find_active()) {
return;
}
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
// Delete QSOs
$this->db->where('station_id', $id);
@@ -238,6 +257,17 @@ class Stations extends CI_Model {
$this->db->update('station_profile', $newdefault);
}
function edit_favourite($id) {
$cleanid = $this->security->xss_clean($id);
$is_favorite = $this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$cleanid))->row()->option_value ?? 'false';
if ($is_favorite == 'true') {
$this->user_options_model->del_option('station_location', 'is_favorite', array('option_key'=>$cleanid));
} else if ($is_favorite == 'false') {
$this->user_options_model->set_option('station_location', 'is_favorite', array($cleanid=>'true'));
}
}
public function find_active() {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('station_active', 1);

View File

@@ -200,8 +200,10 @@ class User_Model extends CI_Model {
// Add user and insert bandsettings for user
$this->db->insert($this->config->item('auth_table'), $data);
$insert_id = $this->db->insert_id();
$this->db->query("insert into bandxuser (bandid, userid, active, cq, dok, dxcc, helvetia, iota, pota, sig, sota, uscounties, was, wwff, vucc, waja, rac) select bands.id, " . $insert_id . ", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 from bands;");
$this->db->query("insert into paper_types (user_id,paper_name,metric,width,orientation,height) SELECT ".$insert_id.", paper_name, metric, width, orientation,height FROM paper_types where user_id = -1;");
$this->db->query("insert into bandxuser (bandid, userid) select bands.id, " . $insert_id . " from bands;");
$this->db->query("insert into paper_types (user_id,paper_name,metric,width,orientation,height) SELECT ".$insert_id.", paper_name, metric, width, orientation,height FROM paper_types where user_id = 0;");
return OK;
} else {
return EUSERNAMEEXISTS;

View File

@@ -1,6 +1,6 @@
<script>
var dxcluster_provider="<?php echo base_url(); ?>index.php/dxcluster";
var dxcluster_maxage=<?php echo $this->optionslib->get_option('dxcluster_maxage'); ?>;
var dxcluster_maxage=<?php echo $this->optionslib->get_option('dxcluster_maxage') ?? 60; ?>;
var cat_timeout_interval="<?php echo $this->optionslib->get_option('cat_timeout_interval'); ?>";
</script>

View File

@@ -1,7 +1,7 @@
<script>
var dxcluster_provider="<?php echo base_url(); ?>index.php/dxcluster";
var cat_timeout_interval="<?php echo $this->optionslib->get_option('cat_timeout_interval'); ?>";
var dxcluster_maxage=<?php echo $this->optionslib->get_option('dxcluster_maxage'); ?>;
var dxcluster_maxage=<?php echo $this->optionslib->get_option('dxcluster_maxage') ?? 60; ?>;
var custom_date_format = "<?php echo $custom_date_format ?>";
</script>

View File

@@ -4,7 +4,9 @@ $dok = 0;
$dxcc = 0;
$helvetia = 0;
$iota = 0;
$jcc = 0;
$pota = 0;
$rac = 0;
$sig = 0;
$sota = 0;
$uscounties = 0;
@@ -48,7 +50,9 @@ $wwff = 0;
<th><?php echo lang('gen_hamradio_dxcc'); ?></th>
<th><?php echo lang('menu_helvetia'); ?></th>
<th><?php echo lang('gen_hamradio_iota'); ?></th>
<th><?php echo lang('menu_jcc'); ?></th>
<th><?php echo lang('gen_hamradio_pota'); ?></th>
<th><?php echo lang('menu_rac'); ?></th>
<th><?php echo lang('gen_hamradio_sig'); ?></th>
<th><?php echo lang('gen_hamradio_sota'); ?></th>
<th><?php echo lang('gen_hamradio_county_reference'); ?></th>
@@ -76,7 +80,9 @@ $wwff = 0;
<td style="text-align: center; vertical-align: middle;" class='dxcc_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->dxcc == 1) {echo 'checked'; $dxcc++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='helvetia_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->helvetia == 1) {echo 'checked'; $helvetia++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='iota_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->iota == 1) {echo 'checked'; $iota++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='jcc_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->jcc == 1) {echo 'checked'; $jcc++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='pota_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->pota == 1) {echo 'checked'; $pota++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='rac_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->rac == 1) {echo 'checked'; $rac++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='sig_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->sig == 1) {echo 'checked'; $sig++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='sota_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->sota == 1) {echo 'checked'; $sota++;}?>></td>
<td style="text-align: center; vertical-align: middle;" class='uscounties_<?php echo $band->id ?>'><input type="checkbox" <?php if ($band->uscounties == 1) {echo 'checked'; $uscounties++;}?>></td>
@@ -108,7 +114,9 @@ $wwff = 0;
<th class="master_dxcc"><input type="checkbox" <?php if ($dxcc > 0) echo 'checked';?>></th>
<th class="master_helvetia"><input type="checkbox" <?php if ($helvetia > 0) echo 'checked';?>></th>
<th class="master_iota"><input type="checkbox" <?php if ($iota > 0) echo 'checked';?>></th>
<th class="master_jcc"><input type="checkbox" <?php if ($jcc > 0) echo 'checked';?>></th>
<th class="master_pota"><input type="checkbox" <?php if ($pota > 0) echo 'checked';?>></th>
<th class="master_rac"><input type="checkbox" <?php if ($rac > 0) echo 'checked';?>></th>
<th class="master_sig"><input type="checkbox" <?php if ($sig > 0) echo 'checked';?>></th>
<th class="master_sota"><input type="checkbox" <?php if ($sota > 0) echo 'checked';?>></th>
<th class="master_uscounties"><input type="checkbox" <?php if ($uscounties > 0) echo 'checked';?>></th>

View File

@@ -1,21 +1,24 @@
<script type="text/javascript">
/*
*
* Define global javascript variables
*
*/
var base_url = "<?php echo base_url(); ?>"; // Base URL
var site_url = "<?php echo site_url(); ?>"; // Site URL
var icon_dot_url = "<?php echo base_url();?>assets/images/dot.png";
// get the user_callsign from session
var my_call = "<?php echo $this->session->userdata('user_callsign'); ?>".toUpperCase();
</script>
<script>
/*
Global used Variables
*/
var option_map_tile_server = '<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
var option_map_tile_server_copyright = '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright');?>';
var lang_datatables_language = '<?php echo lang('datatables_language'); ?>';
var base_url = "<?php echo base_url(); ?>"; // Base URL
var site_url = "<?php echo site_url(); ?>"; // Site URL
var icon_dot_url = "<?php echo base_url();?>assets/images/dot.png";
// get the user_callsign from session
var my_call = "<?php echo $this->session->userdata('user_callsign'); ?>".toUpperCase();
/*
General Language
*/
var lang_general_word_qso_data = "<?php echo lang('general_word_qso_data'); ?>";
var lang_general_edit_qso = "<?php echo lang('general_edit_qso'); ?>";
var lang_general_word_danger = "<?php echo lang('general_word_danger'); ?>";
var lang_general_word_attention = "<?php echo lang('general_word_attention'); ?>";
var lang_general_word_warning = "<?php echo lang('general_word_warning'); ?>";
@@ -28,7 +31,9 @@
var lang_general_word_not_worked = "<?php echo lang('general_word_not_worked'); ?>";
var lang_admin_close = "<?php echo lang('admin_close'); ?>";
var lang_admin_clear = "<?php echo lang('admin_clear'); ?>";
</script>
<!-- General JS Files used across Wavelog -->
<script src="<?php echo base_url(); ?>assets/js/jquery-3.3.1.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/jquery.fancybox.min.js"></script>
@@ -91,17 +96,9 @@ if($this->session->userdata('user_id') != null) {
?>
<!-- Version Dialog END -->
<script>
function set_active_location(current_active, new_active) {
$.ajax({
url: base_url + 'index.php/station/set_active/' + current_active + '/' + new_active + '/1',
type: 'GET',
success: function(response) {
location.reload();
}
});
}
var current_active_location = "<?php echo $this->stations->find_active(); ?>";
quickswitcher_show_activebadge(current_active_location);
</script>
<?php if ($this->uri->segment(1) == "oqrs") { ?>
@@ -965,15 +962,12 @@ $($('#callsign')).on('keypress',function(e) {
<script src="<?php echo base_url() ;?>assets/js/sections/qso.js"></script>
<?php if ($this->session->userdata('isWinkeyEnabled')) { ?>
<script src="<?php echo base_url() ;?>assets/js/winkey.js"></script>
<?php }
if ($this->optionslib->get_option('dxcache_url') != ''){ ?>
<?php } ?>
<script type="text/javascript">
var dxcluster_provider = '<?php echo base_url(); ?>index.php/dxcluster';
</script>
<?php
}
$active_station_id = $this->stations->find_active();
$station_profile = $this->stations->profile($active_station_id);
$active_station_info = $station_profile->row();
@@ -1672,58 +1666,6 @@ $(document).ready(function(){
<script src="<?php echo base_url(); ?>assets/js/sections/webadif.js"></script>
<?php } ?>
<script>
function displayQso(id) {
var baseURL= "<?php echo base_url();?>";
$.ajax({
url: baseURL + 'index.php/logbook/view/' + id,
type: 'post',
success: function(html) {
BootstrapDialog.show({
title: lang_general_word_qso_data,
cssClass: 'qso-dialog',
size: BootstrapDialog.SIZE_WIDE,
nl2br: false,
message: html,
onshown: function(dialog) {
var qsoid = $("#qsoid").text();
$(".editButton").html('<a class="btn btn-primary" id="edit_qso" href="javascript:qso_edit('+qsoid+')"><i class="fas fa-edit"></i><?php echo lang('general_edit_qso'); ?></a>');
var lat = $("#lat").text();
var long = $("#long").text();
var callsign = $("#callsign").text();
var mymap = L.map('mapqso').setView([lat,long], 5);
var tiles = L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server');?>', {
maxZoom: 18,
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright');?>',
}).addTo(mymap);
var printer = L.easyPrint({
tileLayer: tiles,
sizeModes: ['Current'],
filename: 'myMap',
exportOnly: true,
hideControlContainer: true
}).addTo(mymap);
var redIcon = L.icon({
iconUrl: icon_dot_url,
iconSize: [18, 18], // size of the icon
});
L.marker([lat,long], {icon: redIcon}).addTo(mymap)
.bindPopup(callsign);
},
});
}
});
}
</script>
<?php if ($this->uri->segment(2) == "dxcc") { ?>
<script>
$('.tabledxcc').DataTable({
@@ -2010,66 +1952,18 @@ $(document).ready(function(){
</script>
<?php } ?>
<script>
function selectize_usa_county() {
console.log('selectize_usa_county');
var baseURL= "<?php echo base_url();?>";
$('#stationCntyInputEdit').selectize({
delimiter: ';',
maxItems: 1,
closeAfterSelect: true,
loadThrottle: 250,
valueField: 'name',
labelField: 'name',
searchField: 'name',
options: [],
create: false,
load: function(query, callback) {
var state = $("#stateDropdown option:selected").text();
if (!query || state == "") return callback();
$.ajax({
url: baseURL+'index.php/qso/get_county',
type: 'GET',
dataType: 'json',
data: {
query: query,
state: state,
},
error: function() {
callback();
},
success: function(res) {
callback(res);
}
});
}
});
}
function qso_save() {
var baseURL= "<?php echo base_url();?>";
var myform = document.getElementById("qsoform");
var fd = new FormData(myform);
$.ajax({
url: baseURL + 'index.php/qso/qso_save_ajax',
data: fd,
cache: false,
processData: false,
contentType: false,
type: 'POST',
success: function (dataofconfirm) {
$(".edit-dialog").modal('hide');
$(".qso-dialog").modal('hide');
<?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter" && $this->uri->segment(1) != "qso" && $this->uri->segment(1) != "logbookadvanced") { ?>location.reload();<?php } ?>
},
error: function(xhr, status, error) {
console.log(xhr.responseText);
}
});
}
var reload_after_qso_safe = false;
<?php if (
$this->uri->segment(1) != "search" &&
$this->uri->segment(2) != "filter" &&
$this->uri->segment(1) != "qso" &&
$this->uri->segment(1) != "logbookadvanced") { ?>
reload_after_qso_safe = true;
<?php } ?>
</script>
<?php if ($this->uri->segment(1) == "timeline") { ?>
<script>
$('.timelinetable').DataTable({
@@ -2292,7 +2186,7 @@ function qso_save() {
<script>
function viewQsl(picture, callsign) {
var webpath_qsl = "<?php echo $this->paths->getPathQsl(); ?>";
var webpath_qsl = "<?php echo $this->paths->getPathQsl(); ?>";
var baseURL= "<?php echo base_url();?>";
var $textAndPic = $('<div></div>');
$textAndPic.append('<center><img class="img-fluid w-qsl" style="height:auto;width:auto;"src="'+baseURL+webpath_qsl+'/'+picture+'" /><center>');
@@ -2355,7 +2249,7 @@ function deleteQsl(id) {
</script>
<script>
function viewEqsl(picture, callsign) {
var webpath_eqsl = '<?php echo $this->paths->getPathEqsl(); ?>';
var webpath_eqsl = '<?php echo $this->paths->getPathEqsl(); ?>';
var baseURL= "<?php echo base_url();?>";
var $textAndPic = $('<div></div>');
$textAndPic.append('<img class="img-fluid" style="height:auto;width:auto;"src="'+baseURL+webpath_eqsl+'/'+picture+'" />');
@@ -2506,7 +2400,7 @@ function viewEqsl(picture, callsign) {
});
}
function uploadQsl() {
var webpath_qsl = "<?php echo $this->paths->getPathQsl(); ?>";
var webpath_qsl = "<?php echo $this->paths->getPathQsl(); ?>";
var baseURL= "<?php echo base_url();?>";
var formdata = new FormData(document.getElementById("fileinfo"));
@@ -2979,10 +2873,6 @@ if (isset($scripts) && is_array($scripts)){
}
}
?>
<script>
<?php
echo "var lang_datatables_language = '" . lang("datatables_language") . "';"
?>
</script>
</body>
</html>

View File

@@ -78,7 +78,7 @@
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light main-nav" id="header-menu">
<div class="container">
<a class="navbar-brand" href="<?php echo site_url(); ?>"><img class="headerLogo" src="<?php echo base_url(); ?>assets/logo/<?php echo $this->optionslib->get_logo('header_logo'); ?>.png" alt="Logo" /></a>
<a class="navbar-brand" href="<?php echo site_url(); ?>"><img class="headerLogo" src="<?php echo base_url(); ?>assets/logo/<?php echo $this->optionslib->get_logo('header_logo'); ?>.png" alt="Logo" /></a>
<?php if (ENVIRONMENT == "development") { ?>
<span class="badge text-bg-danger"><?php echo lang('menu_badge_developer_mode'); ?></span>
<?php } ?>
@@ -204,10 +204,8 @@
<li><a class="dropdown-item" href="<?php echo site_url('contestcalendar'); ?>" title="SAT Timers"><i class="fas fa-satellite"></i> Contest Calendar</a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('hamsat'); ?>" title="Hams.at"><i class="fas fa-list"></i> Hams.at</a></li>
<?php if ($this->optionslib->get_option('dxcache_url') != '') { ?>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('bandmap/list'); ?>" title="Bandmap"><i class="fa fa-id-card"></i> <?php echo lang('menu_bandmap'); ?></a></li>
<?php } ?>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('bandmap/list'); ?>" title="Bandmap"><i class="fa fa-id-card"></i> <?php echo lang('menu_bandmap'); ?></a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('sattimers'); ?>" title="SAT Timers"><i class="fas fa-satellite"></i> <?php echo lang('menu_sat_timers'); ?></a></li>
</ul>
@@ -318,8 +316,7 @@
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name' => 'locations_quickswitch'))->row()->option_value ?? 'false');
if ($quickswitch_enabled != 'true') {
?>
<li><a class="dropdown-item" href="<?php echo site_url('logbooks'); ?>" title="Manage station logbooks"><i class="fas fa-home"></i> <?php echo lang('menu_station_logbooks'); ?></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('station'); ?>" title="Manage station locations"><i class="fas fa-home"></i> <?php echo lang('menu_station_locations'); ?></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('stationsetup'); ?>" title="Manage station setup"><i class="fas fa-home"></i> <?php echo lang('menu_station_setup'); ?></a></li>
<?php } ?>
<li><a class="dropdown-item" href="<?php echo site_url('band'); ?>" title="Manage Bands"><i class="fas fa-cog"></i> <?php echo lang('menu_bands'); ?></a></li>
@@ -381,32 +378,56 @@
</li>
<?php
if ($quickswitch_enabled == 'true') { ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-map-marker-alt"></i> | <i class="fas fa-book"></i></a>
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
<li><a class="dropdown-item disabled"><?php echo lang('menu_select_location'); ?>:</a></li>
<?php
$location_favorites = $this->user_options_model->get_options('station_location', array('option_name' => 'is_favorite', 'option_value' => 'true'));
$current_active_location = $this->stations->find_active();
$active_badge = '<span class="badge bg-success ms-2">'.lang('general_word_active').'</span>';
foreach ($location_favorites->result() as $row) {
$profile_info = $this->stations->profile($row->option_key)->row();
$station_profile_name = ($profile_info) ? $profile_info->station_profile_name : 'Unknown Location';
$new_active = $row->option_key;
if ($new_active != $current_active_location) { ?>
<li><a type="button" onclick="set_active_location('<?php echo $current_active_location; ?>', '<?php echo $new_active; ?>')" class="dropdown-item"><i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name; ?></a></li>
<?php } else { ?>
<li><a class="dropdown-item"><i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name;
echo $active_badge; ?></a></li>
<?php } ?>
<?php } ?>
<li><a class="dropdown-item" href="<?php echo site_url('station'); ?>" title="Manage station logbooks"><?php echo lang('menu_select_location_show_all'); ?>...</a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item disabled"><?php echo lang('gen_hamradio_active_logbook'); ?>:<span class="badge text-bg-info ms-1"><?php echo $this->logbooks_model->find_name($this->session->userdata('active_station_logbook')); ?></span></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('logbooks'); ?>" title="Manage station locations"><?php echo lang('menu_choose_another_logbook'); ?>...</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-map-marker-alt"></i> | <i class="fas fa-book"></i></a>
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
<li><a class="dropdown-item disabled"><?php echo lang('menu_select_location'); ?>:</a></li>
<?php
// let's get all stations for the logged in user
$all_user_locations = $this->stations->all_of_user($this->session->userdata('user_id'));
// and the set favourites as array
$location_favorites_result = $this->user_options_model->get_options('station_location', array('option_name' => 'is_favorite', 'option_value' => 'true'));
$location_favorites = $location_favorites_result->result_array();
// also we need the current active station
$current_active_location = $this->stations->find_active();
// iterate through all available stations
foreach ($all_user_locations->result() as $row) {
// get information about this station like the name and the station id
$profile_info = $this->stations->profile($row->station_id)->row();
$station_profile_name = ($profile_info) ? $profile_info->station_profile_name : 'Unknown Location';
$station_id = $row->station_id;
// the active badge, not shown by default
$active_badge = '<span id="quickswitcher_active_badge_' . $station_id . '" class="badge bg-success ms-2 d-none">' . lang('general_word_active') . '</span>';
// only continue if the station id is a favourite and show the station in the list
$is_favorite = false;
foreach ($location_favorites as $favorite) {
if ($favorite['option_value'] == true && $favorite['option_key'] == $station_id) {
$is_favorite = true;
break;
}
}
if ($is_favorite) { ?>
<li id="quickswitcher_list_item_<?php echo $station_id; ?>">
<a id="quickswitcher_list_button_<?php echo $station_id; ?>" type="button" onclick="set_active_loc_quickswitcher('<?php echo $station_id; ?>')" class="dropdown-item quickswitcher">
<i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name; echo $active_badge; ?>
</a>
</li>
<?php }
} ?>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item quickswitcher disabled"><?php echo lang('gen_hamradio_active_logbook'); ?>:<span class="badge text-bg-info ms-1"><?php echo $this->logbooks_model->find_name($this->session->userdata('active_station_logbook')); ?></span></a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('stationsetup'); ?>" title="Manage station locations"><?php echo lang('menu_station_setup'); ?>...</a></li>
</ul>
</li>
<?php }
// Can add extra menu items by defining them in options. The format is json.
// Useful to add extra things in Wavelog without the need for modifying files. If you add extras, these files will not be overwritten when updating.
//
@@ -457,4 +478,4 @@
}
});
});
</script>
</script>

View File

@@ -13,17 +13,21 @@ var lang_gen_hamradio_bearing = '<?php echo lang('gen_hamradio_bearing'); ?>';
<?php
echo "var homegrid ='" . strtoupper($homegrid[0]) . "';";
if (!isset($options)) {
$options = "{\"datetime\":{\"show\":\"true\"},\"de\":{\"show\":\"true\"},\"dx\":{\"show\":\"true\"},\"mode\":{\"show\":\"true\"},\"rstr\":{\"show\":\"true\"},\"rsts\":{\"show\":\"true\"},\"band\":{\"show\":\"true\"},\"myrefs\":{\"show\":\"true\"},\"refs\":{\"show\":\"true\"},\"name\":{\"show\":\"true\"},\"qslvia\":{\"show\":\"true\"},\"qsl\":{\"show\":\"true\"},\"lotw\":{\"show\":\"true\"},\"eqsl\":{\"show\":\"true\"},\"qslmsg\":{\"show\":\"true\"},\"dxcc\":{\"show\":\"true\"},\"state\":{\"show\":\"true\"},\"cqzone\":{\"show\":\"true\"},\"iota\":{\"show\":\"true\"},\"pota\":{\"show\":\"true\"},\"operator\":{\"show\":\"true\"}}";
$options = "{\"datetime\":{\"show\":\"true\"},\"de\":{\"show\":\"true\"},\"dx\":{\"show\":\"true\"},\"mode\":{\"show\":\"true\"},\"rstr\":{\"show\":\"true\"},\"rsts\":{\"show\":\"true\"},\"band\":{\"show\":\"true\"},\"myrefs\":{\"show\":\"true\"},\"refs\":{\"show\":\"true\"},\"name\":{\"show\":\"true\"},\"qslvia\":{\"show\":\"true\"},\"qsl\":{\"show\":\"true\"},\"lotw\":{\"show\":\"true\"},\"eqsl\":{\"show\":\"true\"},\"qslmsg\":{\"show\":\"true\"},\"dxcc\":{\"show\":\"true\"},\"state\":{\"show\":\"true\"},\"cqzone\":{\"show\":\"true\"},\"iota\":{\"show\":\"true\"},\"pota\":{\"show\":\"true\"},\"operator\":{\"show\":\"true\"},\"comment\":{\"show\":\"true\"}}";
}
$current_opts=json_decode($options);
echo "var user_options = $options;";
if (!isset($current_opts->pota)) {
echo "\nvar o_template = { pota: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template}";
echo "\nvar o_template = { pota: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template};";
}
if (!isset($current_opts->operator)) {
echo "\nvar o_template = { operator: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template}";
echo "\nuser_options={...user_options, ...o_template};";
}
if (!isset($current_opts->comment)) {
echo "\nvar o_template = { comment: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template};";
}
foreach ($mapoptions as $mo) {
@@ -494,6 +498,9 @@ $options = json_decode($options);
<?php if (($options->operator->show ?? "true") == "true") {
echo '<th>' . lang('gen_hamradio_operator') . '</th>';
} ?>
<?php if (($options->comment->show ?? "true") == "true") {
echo '<th>' . lang('general_word_comment') . '</th>';
} ?>
</tr>
</thead>
<tbody>

View File

@@ -106,6 +106,10 @@
<td><?php echo lang('gen_hamradio_operator'); ?></td>
<td><div class="form-check"><input class="form-check-input" name="operator" type="checkbox" <?php if (($options->operator->show ?? "true") == "true") { echo 'checked'; } ?>></div></td>
</tr>
<tr>
<td><?php echo lang('general_word_comment'); ?></td>
<td><div class="form-check"><input class="form-check-input" name="comment" type="checkbox" <?php if (($options->comment->show ?? "true") == "true") { echo 'checked'; } ?>></div></td>
</tr>
</tbody>
</table>
</div>

View File

@@ -40,7 +40,7 @@
<li class="nav-item">
<a class="nav-link" id="qsl-tab" data-bs-toggle="tab" href="#qsl" role="tab" aria-controls="qsl" aria-selected="false"><?php echo lang('gen_hamradio_qsl'); ?></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="fav_item" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-star"></i></a>
<div class="dropdown-menu">
@@ -120,7 +120,7 @@
<!-- Callsign Input -->
<div class="row">
<div class="mb-3 col-md-12">
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label><?php if ($this->optionslib->get_option('dxcache_url') != '') { ?>&nbsp;<i id="check_cluster" data-bs-toggle="tooltip" title="Search DXCluster for latest Spot" class="fas fa-search"></i> <?php } ?>
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label>&nbsp;<i id="check_cluster" data-bs-toggle="tooltip" title="Search DXCluster for latest Spot" class="fas fa-search"></i>
<div class="input-group">
<input type="text" class="form-control" id="callsign" name="callsign" required>
<span id="qrz_info" class="input-group-text btn-included-on-field d-none py-0"></span>

View File

@@ -285,8 +285,7 @@
<div class="mb-3">
<label for="eqslDefaultQSLMsg"><?php echo lang("station_location_eqsl_defaultqslmsg"); ?></label>
<label class="position-absolute end-0 mb-2 me-3" for="eqslDefaultQSLMsg" id="charsLeft"> </label>
<?php $eqsl_default_qslmsg = (set_value('eqsl_default_qslmsg') != "")?set_value('eqsl_default_qslmsg'):$eqsl_default_qslmsg; ?>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $eqsl_default_qslmsg; ?>"><?php echo $eqsl_default_qslmsg; ?></textarea>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $my_station_profile->eqsl_default_qslmsg; ?>"><?php echo $my_station_profile->eqsl_default_qslmsg; ?></textarea>
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_defaultqslmsg_hint"); ?></small>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<div class="container" id="create_station_logbook">
<br>
<!-- Display Message -->
<div id="flashdata" class="alert-message error">
</div>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php $this->load->helper('form'); ?>
<div class="mb-3">
<label for="stationLogbookNameInput"><?php echo lang('station_logbooks_create_name');?></label>
<input type="text" class="form-control" name="logbook_name" id="logbook_name" aria-describedby="stationLogbookNameHelp" placeholder="Home QTH" required>
<small id="stationLogbookNameHelp" class="form-text text-muted"><?php echo lang('station_logbooks_create_name_hint');?></small>
</div>
</div>

View File

@@ -0,0 +1,194 @@
<div class="container">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<h2><?php echo $page_title; ?></h2>
<div class="row">
<div>
<div class="card">
<div class="card-header">
<?php echo lang('station_logbooks')?>
</div>
<div class="card-body">
<p class="card-text"><?php echo lang('station_logbooks_description_text')?></p>
<a class="btn btn-primary btn-sm" href="javascript:createStationLogbook();"><i class="fas fa-plus"></i> <?php echo lang('station_logbooks_create')?></a>
<?php if ($my_logbooks->num_rows() > 0) { ?>
<div class="table-responsive">
<table id="station_logbooks_table" class="table-sm table table-hover table-striped table-condensed">
<thead>
<tr>
<th scope="col"><?php echo lang('general_word_name')?></th>
<th scope="col"><?php echo lang('station_logbooks_status')?></th>
<th scope="col"><?php echo lang('admin_edit')?></th>
<th scope="col"><?php echo lang('admin_delete')?></th>
<th scope="col"><?php echo lang('station_logbooks_link')?></th>
<th scope="col"><?php echo lang('station_logbooks_public_search')?></th>
</tr>
</thead>
<tbody>
<?php foreach ($my_logbooks->result() as $row) { ?>
<tr>
<td><?php echo $row->logbook_name;?></td>
<td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
<button id="<?php echo $row->logbook_id; ?>" class="setActiveLogbook btn btn-outline-primary btn-sm"><?php echo lang('station_logbooks_set_active')?></button>
<?php } else {
echo "<span class='badge bg-success'>" . lang('station_logbooks_active_logbook') . "</span>";
}?>
</td>
<td>
<a href="<?php echo site_url('logbooks/edit')."/".$row->logbook_id; ?>"
class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"
title="<?php echo lang('station_logbooks_edit_logbook') . ': ' . $row->logbook_name;?>"></i>
</a>
</td>
<td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
<button id="<?php echo $row->logbook_id; ?>" class="deleteLogbook btn btn-danger btn-sm"
cnftext="'<?php echo lang('station_logbooks_confirm_delete') . $row->logbook_name; ?>'"><i
class="fas fa-trash-alt"></i></a>
<?php } ?>
</td>
<td>
<?php if($row->public_slug != '') { ?>
<a target="_blank"
href="<?php echo site_url('visitor')."/".$row->public_slug; ?>"
class="btn btn-outline-primary btn-sm"><i class="fas fa-globe"
title="<?php echo lang('station_logbooks_view_public') . $row->logbook_name;?>"></i>
</a>
<?php } ?>
</td>
<td>
<?php if ($row->public_search == 1) {
echo "<span class='badge bg-success'>" . lang('general_word_enabled') . "</span>";
} else {
echo "<span class='badge bg-dark'>" . lang('general_word_disabled') . "</span>";
} ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
</div>
</div>
<div class="card">
<div class="card-header">
Station Locations
</div>
<div class="card-body">
<p class="card-text"><?php echo lang('station_location_header_ln1'); ?></p>
<p class="card-text"><?php echo lang('station_location_header_ln2'); ?></p>
<p class="card-text"><?php echo lang('station_location_header_ln3'); ?></p>
<p><a href="<?php echo site_url('station/create'); ?>" class="btn btn-sm btn-primary"><i class="fas fa-plus"></i> <?php echo lang('station_location_create'); ?></a></p>
<?php if ($stations->num_rows() > 0) { ?>
<?php if($current_active == 0) { ?>
<div class="alert alert-danger" role="alert">
<?php echo lang('station_location_warning'); ?>
</div>
<?php } ?>
<?php if (($is_there_qsos_with_no_station_id >= 1) && ($is_admin)) { ?>
<div class="alert alert-danger" role="alert">
<span class="badge badge-pill badge-warning"><?php echo lang('general_word_warning'); ?></span> <?php echo lang('station_location_warning_reassign'); ?>
</br>
<?php echo lang('station_location_reassign_at'); ?> <a href="<?php echo site_url('maintenance/'); ?>" class="btn btn-warning"><i class="fas fa-sync"></i><?php echo lang('account_word_admin') . "/" . lang('general_word_maintenance'); ?></a>
</div>
<?php } ?>
<div class="table-responsive">
<table id="station_locations_table" class="table-sm table table-hover table-striped table-condensed">
<thead>
<tr>
<th scope="col"><?php echo lang('station_location_id'); ?></th>
<th scope="col"><?php echo lang('station_location_name'); ?></th>
<th scope="col"><?php echo lang('station_location_callsign'); ?></th>
<th scope="col"><?php echo lang('general_word_country'); ?></th>
<th scope="col"><?php echo lang('gen_hamradio_gridsquare'); ?></th>
<th></th>
<th scope="col"><?php echo lang('admin_edit'); ?></th>
<th scope="col"><?php echo lang('admin_copy'); ?></th>
<?php
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name'=>'locations_quickswitch'))->row()->option_value ?? 'false');
if ($quickswitch_enabled == 'true') {
?>
<th scope="col">Favorite</th>
<?php } ?>
<th scope="col"><?php echo lang('station_location_emptylog'); ?></th>
<th scope="col"><?php echo lang('admin_delete'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($stations->result() as $row) { ?>
<tr>
<td>
<?php echo $row->station_id;?><br>
</td>
<td>
<?php echo $row->station_profile_name;?><br>
</td>
<td><?php echo $row->station_callsign;?></td>
<td><?php echo $row->station_country == '' ? '- NONE -' : $row->station_country; if ($row->dxcc_end != NULL) { echo ' <span class="badge badge-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?></td>
<td><?php echo $row->station_gridsquare;?></td>
<td>
<?php if($row->station_active != 1) { ?>
<a href="<?php echo site_url('station/set_active/').$current_active."/".$row->station_id; ?>" class="btn btn-outline-secondary btn-sm" onclick="return confirm('<?php echo lang('station_location_confirm_active'); ?> <?php echo $row->station_profile_name; ?>');"><?php echo lang('station_location_set_active'); ?></a>
<?php } else { ?>
<span class="badge bg-success"><?php echo lang('station_location_active'); ?></span>
<?php } ?>
<br>
<span class="badge bg-info">ID: <?php echo $row->station_id;?></span>
<span class="badge bg-light"><?php echo $row->qso_total;?> <?php echo lang('gen_hamradio_qso'); ?></span>
</td>
<td>
<a href="<?php echo site_url('station/edit')."/".$row->station_id; ?>" title=<?php echo lang('admin_edit'); ?> class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i></a>
</td>
<td>
<a href="<?php echo site_url('station/copy')."/".$row->station_id; ?>" title=<?php echo lang('admin_copy'); ?> class="btn btn-outline-primary btn-sm"><i class="fas fa-copy"></i></a>
</td>
<?php
if ($quickswitch_enabled == 'true') {
?>
<td style="text-align: center; vertical-align: middle;">
<?php $locationFavorite = ($this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$row->station_id))->row()->option_value ?? 'false');
if ($locationFavorite == 'true') {
$favStarClasses = 'class="fas fa-star" style="color: #ffc82b;"';
} else {
$favStarClasses = 'class="far fa-star" style="color: #a58118;"';
} ?>
<a href="<?php echo site_url('station/edit_favorite')."/".$row->station_id; ?>" title="mark/unmark as favorite" <?php echo $favStarClasses; ?>></a>
</td>
<?php } ?>
<td>
<a href="<?php echo site_url('station/deletelog')."/".$row->station_id; ?>" class="btn btn-danger btn-sm" title=<?php echo lang('station_location_emptylog'); ?> onclick="return confirm('<?php echo lang('station_location_confirm_del_qso'); ?>');"><i class="fas fa-trash-alt"></i></a></td>
</td>
<td>
<?php if($row->station_active != 1) { ?>
<a href="<?php echo site_url('station/delete')."/".$row->station_id; ?>" class="btn btn-danger btn-sm" title=<?php echo lang('admin_delete'); ?> onclick="return confirm('<?php echo lang('station_location_confirm_del_stationlocation'); ?> <?php echo $row->station_profile_name; ?> <?php echo lang('station_location_confirm_del_stationlocation_qso'); ?>');"><i class="fas fa-trash-alt"></i></a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
</div>
</div>
</div>
</div>

View File

@@ -51,13 +51,13 @@
<div class="mb-3">
<label><?php echo lang('account_username'); ?></label>
<input class="form-control" type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" />
<?php if(isset($username_error)) { echo "<small class=\"error\">".$username_error."</small>"; } ?>
<?php if(isset($username_error)) { echo "<small class=\"badge bg-danger\">".$username_error."</small>"; } ?>
</div>
<div class="mb-3">
<label><?php echo lang('account_email_address'); ?></label>
<input class="form-control" type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" />
<?php if(isset($email_error)) { echo "<small class=\"error\">".$email_error."</small>"; } ?>
<?php if(isset($email_error)) { echo "<small class=\"badge bg-danger\">".$email_error."</small>"; } ?>
</div>
<div class="mb-3">
@@ -66,8 +66,10 @@
<input class="form-control" type="password" name="user_password" />
<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span>
</div>
<?php if(isset($password_error)) { echo "<small class=\"error\">".$password_error."</small>"; } else { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php if(isset($password_error)) {
echo "<small class=\"badge bg-danger\">".$password_error."</small>";
} else if (!isset($user_add)) { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php } ?>
</div>
@@ -100,14 +102,14 @@
<div class="mb-3">
<label><?php echo lang('account_first_name'); ?></label>
<input class="form-control" type="text" name="user_firstname" value="<?php if(isset($user_firstname)) { echo $user_firstname; } ?>" />
<?php if(isset($firstname_error)) { echo "<small class=\"error\">".$firstname_error."</small>"; } else { ?>
<?php if(isset($firstname_error)) { echo "<small class=\"badge bg-danger\">".$firstname_error."</small>"; } else { ?>
<?php } ?>
</div>
<div class="mb-3">
<label><?php echo lang('account_last_name'); ?></label>
<input class="form-control" type="text" name="user_lastname" value="<?php if(isset($user_lastname)) { echo $user_lastname; } ?>" />
<?php if(isset($lastname_error)) { echo "<small class=\"error\">".$lastname_error."</small>"; } else { ?>
<?php if(isset($lastname_error)) { echo "<small class=\"badge bg-danger\">".$lastname_error."</small>"; } else { ?>
<?php } ?>
</div>
</div>
@@ -121,14 +123,14 @@
<div class="mb-3">
<label><?php echo lang('account_callsign'); ?></label>
<input class="form-control" type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
<?php if(isset($callsign_error)) { echo "<small class=\"error\">".$callsign_error."</small>"; } else { ?>
<?php if(isset($callsign_error)) { echo "<small class=\"badge bg-danger\">".$callsign_error."</small>"; } else { ?>
<?php } ?>
</div>
<div class="mb-3">
<label><?php echo lang('account_gridsquare'); ?></label>
<input class="form-control" type="text" name="user_locator" value="<?php if(isset($user_locator)) { echo $user_locator; } ?>" />
<?php if(isset($locator_error)) { echo "<small class=\"error\">".$locator_error."</small>"; } else { ?>
<?php if(isset($locator_error)) { echo "<small class=\"badge bg-danger\">".$locator_error."</small>"; } else { ?>
<?php } ?>
</div>
</div>
@@ -648,7 +650,7 @@
<div class="mb-3">
<label><?php echo lang('account_logbook_of_the_world_lotw_username'); ?></label>
<input class="form-control" type="text" name="user_lotw_name" value="<?php if(isset($user_lotw_name)) { echo $user_lotw_name; } ?>" />
<?php if(isset($userlotwname_error)) { echo "<small class=\"error\">".$userlotwname_error."</small>"; } ?>
<?php if(isset($userlotwname_error)) { echo "<small class=\"badge bg-danger\">".$userlotwname_error."</small>"; } ?>
</div>
<div class="mb-3">
@@ -657,8 +659,10 @@
<input class="form-control" type="password" name="user_lotw_password" />
<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span>
</div>
<?php if(isset($lotwpassword_error)) { echo "<small class=\"error\">".$lotwpassword_error."</small>"; } else { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php if(isset($lotwpassword_error)) {
echo "<small class=\"badge bg-danger\">".$lotwpassword_error."</small>";
} else if (!isset($user_add)) { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php } ?>
</div>
</div>
@@ -673,7 +677,7 @@
<div class="mb-3">
<label><?php echo lang('account_eqslcc_username'); ?></label>
<input class="form-control" type="text" name="user_eqsl_name" value="<?php if(isset($user_eqsl_name)) { echo $user_eqsl_name; } ?>" />
<?php if(isset($eqslusername_error)) { echo "<small class=\"error\">".$eqslusername_error."</small>"; } ?>
<?php if(isset($eqslusername_error)) { echo "<small class=\"badge bg-danger\">".$eqslusername_error."</small>"; } ?>
</div>
<div class="mb-3">
@@ -682,8 +686,10 @@
<input class="form-control" type="password" name="user_eqsl_password" />
<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span>
</div>
<?php if(isset($eqslpassword_error)) { echo "<small class=\"error\">".$eqslpassword_error."</small>"; } else { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php if(isset($eqslpassword_error)) {
echo "<small class=\"badge bg-danger\">".$eqslpassword_error."</small>";
} else if (!isset($user_add)) { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php } ?>
</div>
</div>
@@ -699,7 +705,7 @@
<label><?php echo lang('account_clublog_email_callsign'); ?></label>
<input class="form-control" type="text" name="user_clublog_name" value="<?php if(isset($user_clublog_name)) { echo $user_clublog_name; } ?>" />
<small class="form-text text-muted"><?php echo lang('account_the_email_or_callsign_you_use_to_login_to_club_log'); ?></small>
<?php if(isset($userclublogname_error)) { echo "<small class=\"error\">".$userclublogname_error."</small>"; } ?>
<?php if(isset($userclublogname_error)) { echo "<small class=\"badge bg-danger\">".$userclublogname_error."</small>"; } ?>
</div>
<div class="mb-3">
@@ -708,8 +714,10 @@
<input class="form-control" type="password" name="user_clublog_password" />
<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span>
</div>
<?php if(isset($clublogpassword_error)) { echo "<small class=\"error\">".$clublogpassword_error."</small>"; } else { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php if(isset($clublogpassword_error)) {
echo "<small class=\"badge bg-danger\">".$clublogpassword_error."</small>";
} else if (!isset($user_add)) { ?>
<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
<?php } ?>
</div>
</div>

View File

@@ -861,4 +861,14 @@ label {
--bs-btn-padding-x: 0.3rem;
--bs-btn-padding-y: 0.1rem;
display: none;
}
}
.quickswitcher.disabled {
--bs-dropdown-link-disabled-color: initial !important;
}
#station_logbooks_table tbody td, #station_locations_table tbody td {
text-align: center;
vertical-align: middle;
}

View File

@@ -8,7 +8,8 @@ $(function() {
function get_dtable () {
var table = $('.spottable').DataTable({
"retrieve":true,
"paging": false,
"retrieve": true,
"language": {
url: getDataTablesLanguageUrl(),
},

View File

@@ -215,7 +215,9 @@ function saveBand(id) {
'dxcc': $(".dxcc_"+id+" input[type='checkbox']").is(":checked"),
'helvetia': $(".helvetia_"+id+" input[type='checkbox']").is(":checked"),
'iota': $(".iota_"+id+" input[type='checkbox']").is(":checked"),
'jcc': $(".jcc_"+id+" input[type='checkbox']").is(":checked"),
'pota': $(".pota_"+id+" input[type='checkbox']").is(":checked"),
'rac': $(".rac_"+id+" input[type='checkbox']").is(":checked"),
'sig': $(".sig_"+id+" input[type='checkbox']").is(":checked"),
'sota': $(".sota_"+id+" input[type='checkbox']").is(":checked"),
'uscounties': $(".uscounties_"+id+" input[type='checkbox']").is(":checked"),

View File

@@ -88,6 +88,54 @@ function qsl_ignore(id, method) {
});
}
function displayQso(id) {
$.ajax({
url: base_url + 'index.php/logbook/view/' + id,
type: 'post',
success: function(html) {
BootstrapDialog.show({
title: lang_general_word_qso_data,
cssClass: 'qso-dialog',
size: BootstrapDialog.SIZE_WIDE,
nl2br: false,
message: html,
onshown: function(dialog) {
var qsoid = $("#qsoid").text();
$(".editButton").html('<a class="btn btn-primary" id="edit_qso" href="javascript:qso_edit('+qsoid+')"><i class="fas fa-edit"></i>'+lang_general_edit_qso+'</a>');
var lat = $("#lat").text();
var long = $("#long").text();
var callsign = $("#callsign").text();
var mymap = L.map('mapqso').setView([lat,long], 5);
var tiles = L.tileLayer(option_map_tile_server, {
maxZoom: 18,
attribution: option_map_tile_server_copyright,
}).addTo(mymap);
var printer = L.easyPrint({
tileLayer: tiles,
sizeModes: ['Current'],
filename: 'myMap',
exportOnly: true,
hideControlContainer: true
}).addTo(mymap);
var redIcon = L.icon({
iconUrl: icon_dot_url,
iconSize: [18, 18], // size of the icon
});
L.marker([lat,long], {icon: redIcon}).addTo(mymap)
.bindPopup(callsign);
},
});
}
});
}
function qso_delete(id, call) {
BootstrapDialog.confirm({
title: lang_general_word_danger,
@@ -128,7 +176,7 @@ function qso_edit(id) {
$('.menuOnBody').remove();
BootstrapDialog.show({
title: lang_general_word_qso_data,
cssClass: 'edit-dialog, bg-black bg-opacity-50',
cssClass: 'edit-dialog bg-black bg-opacity-50',
size: BootstrapDialog.SIZE_WIDE,
nl2br: false,
message: html,
@@ -318,6 +366,63 @@ function qso_edit(id) {
});
}
function qso_save() {
var myform = $("#qsoform")[0];
var fd = new FormData(myform);
$.ajax({
url: base_url + 'index.php/qso/qso_save_ajax',
data: fd,
cache: false,
processData: false,
contentType: false,
type: 'POST',
success: function (dataofconfirm) {
$(".edit-dialog").modal('hide');
$(".qso-dialog").modal('hide');
if (reload_after_qso_safe == true) {
location.reload();
}
},
error: function(xhr, status, error) {
console.log(xhr.responseText);
}
});
}
function selectize_usa_county() {
$('#stationCntyInputEdit').selectize({
delimiter: ';',
maxItems: 1,
closeAfterSelect: true,
loadThrottle: 250,
valueField: 'name',
labelField: 'name',
searchField: 'name',
options: [],
create: false,
load: function(query, callback) {
var state = $("#stateDropdown option:selected").text();
if (!query || state == "") return callback();
$.ajax({
url: base_url + 'index.php/qso/get_county',
type: 'GET',
dataType: 'json',
data: {
query: query,
state: state,
},
error: function() {
callback();
},
success: function(res) {
callback(res);
}
});
}
});
}
async function updateStateDropdown() {
var selectedDxcc = $("#dxcc_id");
@@ -600,8 +705,8 @@ function displayQsl(id) {
// [eQSL default msg] function to load default qslmsg to qslmsg field on qso add/edit //
function qso_set_eqsl_qslmsg(station_id, force_diff_to_origin=false, object='') {
$.ajax({
url: base_url+'index.php/station/get_options',
type: 'post', data: {'option_type':'eqsl_default_qslmsg','option_name':'key_station_id','option_key':station_id },
url: base_url+'index.php/qso/get_eqsl_default_qslmsg',
type: 'post', data: {'option_key':station_id },
success: function(res) {
if (typeof res.eqsl_default_qslmsg !== "undefined") {
object = (object!='')?(object+' '):'';
@@ -701,6 +806,55 @@ function statesDropdown(states, set_state = null) {
}
}
// Location Quickswitcher
function quickswitcher_show_activebadge(current_active) {
$('#quickswitcher_active_badge_' + current_active).removeClass('d-none');
$('#quickswitcher_list_button_' + current_active).addClass('disabled');
}
function current_active_ajax(callback) {
$.ajax({
url: base_url + 'index.php/stationsetup/getActiveStation',
type: 'GET',
dataType: 'json',
success: function(response) {
var current_active = response;
callback(current_active);
}
});
}
function set_active_loc_quickswitcher(new_active) {
current_active_ajax(function(current_active) {
$.ajax({
url: base_url + 'index.php/stationsetup/setActiveStation_json',
type: 'POST',
dataType: 'json',
data: {
id2setActive: new_active
},
success: function(response) {
$('[id^="quickswitcher_list_button_"]').not('#quickswitcher_list_button_' + new_active).removeClass('disabled');
$('[id^="quickswitcher_active_badge_"]').not('#quickswitcher_active_badge_' + new_active).addClass('d-none');
$('#quickswitcher_list_button_' + new_active).addClass('disabled');
$('#quickswitcher_active_badge_' + new_active).removeClass('d-none');
// if we are on the stationsetup page the function reloadStations exists and we can run it
if (typeof reloadStations === 'function') {
reloadStations();
}
},
error: function(xhr, status, error) {
console.error('Error while setting the new active location: ' + error);
}
});
});
}
console.log("Ready to unleash your coding prowess and join the fun?\n\n" +
"Check out our GitHub Repository and dive into the coding adventure:\n\n" +
"🚀 https://www.github.com/wavelog/wavelog");

View File

@@ -87,6 +87,9 @@ function updateRow(qso) {
if ( (user_options.operator) && (user_options.operator.show == "true")){
cells.eq(c++).html(qso.operator);
}
if ( (user_options.comment) && (user_options.comment.show == "true")){
cells.eq(c++).html(qso.comment);
}
$('[data-bs-toggle="tooltip"]').tooltip();
return row;
@@ -189,6 +192,9 @@ function loadQSOTable(rows) {
if (user_options.operator.show == "true"){
data.push(qso.operator);
}
if (user_options.comment.show == "true"){
data.push(qso.comment);
}
let createdRow = table.row.add(data).index();
table.rows(createdRow).nodes().to$().data('qsoID', qso.qsoID);
@@ -872,6 +878,7 @@ function saveOptions() {
iota: $('input[name="iota"]').is(':checked') ? true : false,
pota: $('input[name="pota"]').is(':checked') ? true : false,
operator: $('input[name="operator"]').is(':checked') ? true : false,
comment: $('input[name="comment"]').is(':checked') ? true : false,
gridsquare_layer: $('input[name="gridsquareoverlay"]').is(':checked') ? true : false,
path_lines: $('input[name="pathlines"]').is(':checked') ? true : false,
cqzone_layer: $('input[name="cqzones"]').is(':checked') ? true : false,

View File

@@ -1060,6 +1060,7 @@ $( document ).ready(function() {
$.get(base_url + 'index.php/qso/band_to_freq/' + $(this).val() + '/' + $('.mode').val(), function(result) {
$('#frequency').val(result);
$('#frequency_rx').val("");
$('#band_rx').val("");
});
$("#selectPropagation").val("");
$("#sat_name").val("");

View File

@@ -0,0 +1,309 @@
$(document).ready(function () {
reloadStations();
$("#station_locations_table").DataTable({
stateSave: true,
language: {
url: getDataTablesLanguageUrl(),
},
});
$(document).on('click','.newLogbook', function (e) { // Dynamic binding, since element doesn't exists when loading this JS
$.ajax({
url: base_url + 'index.php/stationsetup/newLogbook_json',
type: 'post',
data: {
'stationLogbook_Name': $("#logbook_name").val(),
},
success: function(data) {
jdata=JSON.parse(data);
if (jdata.success == 1) {
$("#NewStationLogbookModal").modal('hide');
reloadLogbooks();
} else {
$("#flashdata").html(jdata.flashdata);
}
},
error: function(e) {
$("#flashdata").html("An unknown Error occured");
}
});
});
$(document).on('click', '.deleteLogbook', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('deleteLogbook_json', 'id2delete', reloadLogbooks,e);
});
$(document).on('click', '.setActiveLogbook', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setActiveLogbook_json', 'id2setActive', reloadLogbooks,e);
});
$(document).on('click', '.setActiveStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setActiveStation_json', 'id2setActive', reloadStations,e);
});
$(document).on('click', '.DeleteStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('DeleteStation_json', 'id2del', reloadStations,e);
});
$(document).on('click', '.EmptyStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('EmptyStation_json', 'id2Empty', reloadStations,e);
});
$(document).on('click', '.setFavorite', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setFavorite_json', 'id2Favorite', reloadStations,e);
});
$("#station_logbooks_table").DataTable({
stateSave: true,
language: {
url: getDataTablesLanguageUrl(),
},
});
});
async function do_ajax(ajax_uri, ajax_field, succ_callback, event_target) {
if (event_target.currentTarget.attributes.cnftext) {
if (!(confirm(event_target.currentTarget.attributes.cnftext.value))) {
return false;
}
}
$.ajax({
url: base_url + 'index.php/stationsetup/' + ajax_uri,
type: 'post',
data: {
[ajax_field]: event_target.currentTarget.id,
},
success: function(data) {
jdata=JSON.parse(data);
if (jdata.success == 1) {
succ_callback();
// we also want to switch the active badge in the quickswitcher
set_active_loc_quickswitcher(event_target.currentTarget.id);
} else {
$("#flashdata").html(jdata.flashdata);
}
},
error: function(e) {
$("#flashdata").html("An unknown Error occured");
}
});
}
function reloadLogbooks() {
$.ajax({
url: base_url + 'index.php/stationsetup/fetchLogbooks',
type: 'post',
dataType: 'json',
success: function (data) {
loadLogbookTable(data);
},
error: function (data) {
BootstrapDialog.alert({
title: 'ERROR',
message: 'An error ocurred while making the request',
type: BootstrapDialog.TYPE_DANGER,
closable: false,
draggable: false,
callback: function (result) {
}
});
},
});
return false;
}
function reloadStations() {
$.ajax({
url: base_url + 'index.php/stationsetup/fetchLocations',
type: 'post',
dataType: 'json',
success: function (data) {
loadLocationTable(data);
},
error: function (data) {
BootstrapDialog.alert({
title: 'ERROR',
message: 'An error ocurred while making the request',
type: BootstrapDialog.TYPE_DANGER,
closable: false,
draggable: false,
callback: function (result) {
}
});
},
});
return false;
}
function createStationLogbook() {
$.ajax({
url: base_url + 'index.php/stationsetup/newLogbook',
type: 'post',
success: function (html) {
BootstrapDialog.show({
title: 'Create a new station logbook',
size: BootstrapDialog.SIZE_NORMAL,
cssClass: 'options',
id: "NewStationLogbookModal",
nl2br: false,
message: html,
onshown: function(dialog) {
},
buttons: [{
label: 'Save',
cssClass: 'btn-primary btn-sm newLogbook',
id: 'saveButtonNewLogbook',
},
{
label: lang_admin_close,
cssClass: 'btn-sm',
id: 'closeButton',
action: function (dialogItself) {
dialogItself.close();
}
}],
onhide: function(dialogRef){
$('#optionButton').prop("disabled", false);
},
});
}
});
}
function createStationLocation() {
$.ajax({
url: base_url + 'index.php/stationsetup/newLocation',
type: 'post',
success: function (html) {
BootstrapDialog.show({
title: 'Create a new station location',
size: BootstrapDialog.SIZE_EXTRAWIDE,
cssClass: 'options',
nl2br: false,
message: html,
onshown: function(dialog) {
},
buttons: [{
label: 'Save',
cssClass: 'btn-primary btn-sm',
id: 'saveButton',
action: function (dialogItself) {
dialogItself.close();
}
},
{
label: lang_admin_close,
cssClass: 'btn-sm',
id: 'closeButton',
action: function (dialogItself) {
dialogItself.close();
}
}],
onhide: function(dialogRef){
$('#optionButton').prop("disabled", false);
},
});
}
});
}
function loadLogbookTable(rows) {
var uninitialized = $('#station_logbooks_table').filter(function() {
return !$.fn.DataTable.fnIsDataTable(this);
});
uninitialized.each(function() {
$(this).DataTable({
searching: false,
responsive: false,
ordering: true,
"scrollY": window.innerHeight - $('#searchForm').innerHeight() - 250,
"scrollCollapse": true,
"paging": false,
"scrollX": true,
"language": {
url: getDataTablesLanguageUrl(),
},
});
});
var table = $('#station_logbooks_table').DataTable();
table.clear();
for (i = 0; i < rows.length; i++) {
let logbook = rows[i];
var data = [];
data.push(logbook.logbook_name);
data.push(logbook.logbook_state);
data.push(logbook.logbook_edit);
data.push(logbook.logbook_delete);
data.push(logbook.logbook_link);
data.push(logbook.logbook_publicsearch);
let createdRow = table.row.add(data).index();
}
table.draw();
$('[data-bs-toggle="tooltip"]').tooltip();
}
function loadLocationTable(rows) {
var uninitialized = $('#station_locations_table').filter(function() {
return !$.fn.DataTable.fnIsDataTable(this);
});
uninitialized.each(function() {
$(this).DataTable({
searching: false,
responsive: false,
ordering: true,
"scrollY": window.innerHeight - $('#searchForm').innerHeight() - 250,
"scrollCollapse": true,
"paging": false,
"scrollX": true,
"language": {
url: getDataTablesLanguageUrl(),
},
'columnDefs': [
{ 'targets':0,
'createdCell': function (td, cellData, rowData, row, col) {
(td).attr('data-order', 1); // not sure how to add ID dynamic here
}
}
]
});
});
var table = $('#station_locations_table').DataTable();
table.clear();
for (i = 0; i < rows.length; i++) {
let locations = rows[i];
var data = [];
data.push(locations.station_id);
data.push(locations.station_name);
data.push(locations.station_callsign);
data.push(locations.station_country);
data.push(locations.station_gridsquare);
data.push(locations.station_badge);
data.push(locations.station_edit);
data.push(locations.station_copylog);
if (locations.station_favorite != ''){
data.push(locations.station_favorite);
}
data.push(locations.station_emptylog);
data.push(locations.station_delete);
let createdRow = table.row.add(data).index();
}
table.draw();
$('[data-bs-toggle="tooltip"]').tooltip();
}

View File

@@ -53,8 +53,7 @@ function isExtensionInstalled($extensionName)
return in_array($extensionName, get_loaded_extensions());
}
function delDir($dir)
{
function delDir($dir) {
$files = glob($dir . '*', GLOB_MARK);
foreach ($files as $file) {
if (substr($file, -1) == '/') {
@@ -91,7 +90,7 @@ if ($_POST) {
$core = new Core();
$database = new Database();
if ($_POST['database_check'] == true) {
if ($_POST['database_check'] ?? false == true) {
$result = $database->database_check($_POST);
echo $result;
@@ -1030,4 +1029,4 @@ global $wavelog_url;
<?php endif; ?>
</html>
</html>

View File

@@ -67,6 +67,7 @@ class QSO
private string $lastupload;
private string $lotw_hint;
private string $operator;
private string $comment;
/**
* @param array $data Does no validation, it's assumed to be a row from the database in array format
@@ -119,6 +120,7 @@ class QSO
'COL_COUNTRY',
'COL_IOTA',
'COL_OPERATOR',
'COL_COMMENT',
];
@@ -207,6 +209,8 @@ class QSO
$this->lastupload = (($data['lastupload'] ?? null) === null) ? '' : date($custom_date_format . " H:i", strtotime($data['lastupload'] ?? null));
$this->lotw_hint = $this->getLotwHint($data['lastupload'] ?? null);
$this->operator = ($data['COL_OPERATOR'] === null) ? '' :$data['COL_OPERATOR'];
$this->comment = $data['COL_COMMENT'] ?? '';
}
/**
@@ -822,6 +826,7 @@ class QSO
'callsign' => $this->callsign,
'lastupload' => $this->lastupload,
'lotw_hint' => $this->lotw_hint,
'comment' => $this->comment
];
}