From 6aab4f7bbcec8efc22d54a3de0afa689703df9d0 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 16 Jul 2023 11:53:53 +0000 Subject: [PATCH] Implemented DXCluster-Lookup for current QRG --- application/config/config.sample.php | 13 +++++++++++++ application/views/interface_assets/footer.php | 18 +++++++++++++++++- application/views/qso/index.php | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/application/config/config.sample.php b/application/config/config.sample.php index 081a62e8..b388af57 100644 --- a/application/config/config.sample.php +++ b/application/config/config.sample.php @@ -598,3 +598,16 @@ $config['rewrite_short_tags'] = FALSE; | Array: array('10.0.1.200', '192.168.5.0/24') */ $config['proxy_ips'] = ''; + +/* +|-------------------------------------------------------------------------- +| DXCluster-API Base-URL +|-------------------------------------------------------------------------- +| +| If you have access to a DXCluster-API ( see https://github.com/int2001/DXClusterAPI for running your own ) +| put the base-URL for that API here +| +| Example: 'https://log.jo30.de/dxcache' +| Leave blank to disable: '' +*/ +$config['dxcluster_provider']=''; diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 574f57fb..dd753bf6 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -933,9 +933,25 @@ $(document).on('keypress',function(e) { uri->segment(1) == "qso") { ?> - config->item('dxcluster_provider') != ''){ ?> + +load->model('stations'); $active_station_id = $this->stations->find_active(); $station_profile = $this->stations->profile($active_station_id); diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 4533b6b5..ec127c54 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -63,7 +63,7 @@
- + config->item('dxcluster_provider') != '') { ?>