mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
make dxcluster refresh time configurable
This commit is contained in:
@@ -892,6 +892,19 @@ $config['max_login_attempts'] = 3;
|
||||
$config['enable_dxcluster_file_cache_band'] = false;
|
||||
$config['enable_dxcluster_file_cache_worked'] = false;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| DXCluster Refresh Time
|
||||
|--------------------------------------------------------------------------
|
||||
| This defines the how often the DXCluster spots are refreshed in seconds. Default is 30 seconds.
|
||||
| Be careful with this and do not set it too low because depending on how many QSOs a user has it
|
||||
| can cause a lot of load on the server. Also consider enabling a proper caching (file caches are
|
||||
| not recommended for very large installations) to reduce the load on the server.
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$config['dxcluster_refresh_time'] = 30;
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Internal tools
|
||||
|
||||
@@ -60,18 +60,20 @@ class Bandmap extends CI_Controller {
|
||||
}
|
||||
|
||||
switch ($pageData['custom_date_format']) {
|
||||
case "d/m/y": $pageData['custom_date_format'] = 'DD/MM/YY'; break;
|
||||
case "d/m/Y": $pageData['custom_date_format'] = 'DD/MM/YYYY'; break;
|
||||
case "m/d/y": $pageData['custom_date_format'] = 'MM/DD/YY'; break;
|
||||
case "m/d/Y": $pageData['custom_date_format'] = 'MM/DD/YYYY'; break;
|
||||
case "d.m.Y": $pageData['custom_date_format'] = 'DD.MM.YYYY'; break;
|
||||
case "y/m/d": $pageData['custom_date_format'] = 'YY/MM/DD'; break;
|
||||
case "Y-m-d": $pageData['custom_date_format'] = 'YYYY-MM-DD'; break;
|
||||
case "M d, Y": $pageData['custom_date_format'] = 'MMM DD, YYYY'; break;
|
||||
case "M d, y": $pageData['custom_date_format'] = 'MMM DD, YY'; break;
|
||||
default: $pageData['custom_date_format'] = 'DD/MM/YYYY';
|
||||
case "d/m/y": $pageData['custom_date_format'] = 'DD/MM/YY'; break;
|
||||
case "d/m/Y": $pageData['custom_date_format'] = 'DD/MM/YYYY'; break;
|
||||
case "m/d/y": $pageData['custom_date_format'] = 'MM/DD/YY'; break;
|
||||
case "m/d/Y": $pageData['custom_date_format'] = 'MM/DD/YYYY'; break;
|
||||
case "d.m.Y": $pageData['custom_date_format'] = 'DD.MM.YYYY'; break;
|
||||
case "y/m/d": $pageData['custom_date_format'] = 'YY/MM/DD'; break;
|
||||
case "Y-m-d": $pageData['custom_date_format'] = 'YYYY-MM-DD'; break;
|
||||
case "M d, Y": $pageData['custom_date_format'] = 'MMM DD, YYYY'; break;
|
||||
case "M d, y": $pageData['custom_date_format'] = 'MMM DD, YY'; break;
|
||||
default: $pageData['custom_date_format'] = 'DD/MM/YYYY';
|
||||
}
|
||||
|
||||
$data['dxcluster_refresh_time'] = $this->config->item('dxcluster_refresh_time') ?? 30;
|
||||
|
||||
$data['page_title'] = __("DXCluster");
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
$this->load->view('bandmap/list',$pageData);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
var cat_timeout_interval = "<?php echo $this->optionslib->get_option('cat_timeout_interval'); ?>";
|
||||
var dxcluster_maxage = <?php echo $this->optionslib->get_option('dxcluster_maxage') ?? 60; ?>;
|
||||
var custom_date_format = "<?php echo $custom_date_format ?>";
|
||||
var dxcluster_refresh_time = <?php echo $dxcluster_refresh_time; ?>;
|
||||
|
||||
// Detect OS for proper keyboard shortcuts
|
||||
var isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// CONFIGURATION & CONSTANTS
|
||||
// ========================================
|
||||
|
||||
const SPOT_REFRESH_INTERVAL = 60; // Auto-refresh interval in seconds
|
||||
const SPOT_REFRESH_INTERVAL = dxcluster_refresh_time; // Auto-refresh interval in seconds, defined via config.php (default: 30s)
|
||||
const QSO_SEND_DEBOUNCE_MS = 3000; // Debounce for sending callsign to QSO form (milliseconds)
|
||||
|
||||
// Mode display capitalization lookup (API returns lowercase)
|
||||
|
||||
@@ -892,6 +892,18 @@ $config['enable_eqsl_massdownload'] = false;
|
||||
$config['enable_dxcluster_file_cache_band'] = false;
|
||||
$config['enable_dxcluster_file_cache_worked'] = false;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| DXCluster Refresh Time
|
||||
|--------------------------------------------------------------------------
|
||||
| This defines the how often the DXCluster spots are refreshed in seconds. Default is 30 seconds.
|
||||
| Be careful with this and do not set it too low because depending on how many QSOs a user has it
|
||||
| can cause a lot of load on the server. Also consider enabling a proper caching (file caches are
|
||||
| not recommended for very large installations) to reduce the load on the server.
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$config['dxcluster_refresh_time'] = 30;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Internal tools
|
||||
|
||||
Reference in New Issue
Block a user