diff --git a/application/controllers/Activated_gridmap.php b/application/controllers/Activated_gridmap.php index f105f149f..4e09f162c 100644 --- a/application/controllers/Activated_gridmap.php +++ b/application/controllers/Activated_gridmap.php @@ -44,8 +44,8 @@ class Activated_gridmap extends CI_Controller { $footerData['scripts'] = [ 'assets/js/leaflet/geocoding.js', 'assets/js/leaflet/L.MaidenheadColouredGridMap.js', - 'assets/js/sections/gridmap.js?', - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), + 'assets/js/sections/gridmap.js', + 'assets/js/bootstrap-multiselect.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Activators.php b/application/controllers/Activators.php index 652833dc6..d1d8315bc 100644 --- a/application/controllers/Activators.php +++ b/application/controllers/Activators.php @@ -50,7 +50,7 @@ class Activators extends CI_Controller $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/activators.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/activators.js")), + 'assets/js/sections/activators.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index bdd98ac16..3379dc64a 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -277,7 +277,7 @@ class Awards extends CI_Controller { public function waja () { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/wajamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wajamap.js")), + 'assets/js/sections/wajamap.js', 'assets/js/leaflet/L.Maidenhead.js', ]; @@ -357,8 +357,8 @@ class Awards extends CI_Controller { public function jcc () { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/jcc.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/jcc.js")), - 'assets/js/sections/jccmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/jccmap.js")) + 'assets/js/sections/jcc.js', + 'assets/js/sections/jccmap.js' ]; $this->load->model('jcc_model'); @@ -637,8 +637,8 @@ class Awards extends CI_Controller { public function cq() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/cqmap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap_geojson.js")), - 'assets/js/sections/cqmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap.js")) + 'assets/js/sections/cqmap_geojson.js', + 'assets/js/sections/cqmap.js' ]; $this->load->model('logbooks_model'); @@ -713,7 +713,7 @@ class Awards extends CI_Controller { public function was() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/wasmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wasmap.js")), + 'assets/js/sections/wasmap.js', 'assets/js/leaflet/L.Maidenhead.js', ]; @@ -775,7 +775,7 @@ class Awards extends CI_Controller { public function rac() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/racmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/racmap.js")), + 'assets/js/sections/racmap.js', 'assets/js/leaflet/L.Maidenhead.js', ]; @@ -837,7 +837,7 @@ class Awards extends CI_Controller { public function helvetia() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/helvetiamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/helvetiamap.js")), + 'assets/js/sections/helvetiamap.js', 'assets/js/leaflet/L.Maidenhead.js', ]; @@ -1367,7 +1367,7 @@ class Awards extends CI_Controller { public function wap() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/wapmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wapmap.js")), + 'assets/js/sections/wapmap.js', 'assets/js/leaflet/L.Maidenhead.js', ]; @@ -1895,7 +1895,7 @@ class Awards extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/wab.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wab.js")) + 'assets/js/sections/wab.js' ]; // Render page @@ -1975,8 +1975,8 @@ class Awards extends CI_Controller { public function itu() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")), - 'assets/js/sections/itumap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap.js")) + 'assets/js/sections/itumap_geojson.js', + 'assets/js/sections/itumap.js' ]; $this->load->model('logbooks_model'); @@ -2271,7 +2271,7 @@ class Awards extends CI_Controller { public function wpx () { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/wpx.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wpx.js")), + 'assets/js/sections/wpx.js', ]; $this->load->model('wpx'); @@ -2385,7 +2385,7 @@ class Awards extends CI_Controller { public function pl_polska() { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/award_pl_polska.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/award_pl_polska.js")), + 'assets/js/sections/award_pl_polska.js', 'assets/js/leaflet/L.Maidenhead.js', ]; diff --git a/application/controllers/Band.php b/application/controllers/Band.php index 3afe7ef72..181287cef 100644 --- a/application/controllers/Band.php +++ b/application/controllers/Band.php @@ -36,7 +36,7 @@ class Band extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/bandedges.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/bandedges.js")), + 'assets/js/sections/bandedges.js', ]; // Render Page diff --git a/application/controllers/Bandmap.php b/application/controllers/Bandmap.php index 15788d870..4c4b6fcd9 100644 --- a/application/controllers/Bandmap.php +++ b/application/controllers/Bandmap.php @@ -41,13 +41,13 @@ class Bandmap extends CI_Controller { $footerData = []; $footerData['scripts'] = [ 'assets/js/moment.min.js', - 'assets/js/datetime-moment.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/datetime-moment.js")), - 'assets/js/cat.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/cat.js")), - 'assets/js/leaflet/leaflet.geodesic.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/leaflet.geodesic.js")), - 'assets/js/leaflet.polylineDecorator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet.polylineDecorator.js")), - 'assets/js/leaflet/L.Terminator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/L.Terminator.js")), - 'assets/js/sections/callstats.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/callstats.js")), - 'assets/js/sections/bandmap_list.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/bandmap_list.js")), + 'assets/js/datetime-moment.js', + 'assets/js/cat.js', + 'assets/js/leaflet/leaflet.geodesic.js', + 'assets/js/leaflet.polylineDecorator.js', + 'assets/js/leaflet/L.Terminator.js', + 'assets/js/sections/callstats.js', + 'assets/js/sections/bandmap_list.js', ]; // Get Date format diff --git a/application/controllers/Callstats.php b/application/controllers/Callstats.php index b813a60d1..e80cb1c68 100644 --- a/application/controllers/Callstats.php +++ b/application/controllers/Callstats.php @@ -74,7 +74,7 @@ class Callstats extends CI_Controller $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/callstats.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/callstats.js")), + 'assets/js/sections/callstats.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Calltester.php b/application/controllers/Calltester.php index f1088151e..9280f14e2 100644 --- a/application/controllers/Calltester.php +++ b/application/controllers/Calltester.php @@ -26,7 +26,7 @@ class Calltester extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/calltester.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/calltester.js")) + 'assets/js/sections/calltester.js', ]; $data['page_title'] = __("Call Tester"); diff --git a/application/controllers/Club.php b/application/controllers/Club.php index eb8daf0e6..8b7a08de5 100644 --- a/application/controllers/Club.php +++ b/application/controllers/Club.php @@ -61,7 +61,7 @@ class Club extends CI_Controller $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/club_permissions.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/club_permissions.js")), + 'assets/js/sections/club_permissions.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Clublog.php b/application/controllers/Clublog.php index 47dab8ebb..163d32b9c 100644 --- a/application/controllers/Clublog.php +++ b/application/controllers/Clublog.php @@ -96,7 +96,7 @@ class Clublog extends CI_Controller $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/clublog.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/clublog.js")), + 'assets/js/sections/clublog.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Contestcalendar.php b/application/controllers/Contestcalendar.php index 6979a21af..9a9e1ce9a 100644 --- a/application/controllers/Contestcalendar.php +++ b/application/controllers/Contestcalendar.php @@ -36,7 +36,7 @@ class Contestcalendar extends CI_Controller { } $footerData['scripts'] = [ - 'assets/js/sections/dxcalendar.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/dxcalendar.js")) + 'assets/js/sections/dxcalendar.js' ]; } else { $data['contestsToday']=''; diff --git a/application/controllers/Contesting.php b/application/controllers/Contesting.php index 63ebe9c47..94e44ed13 100644 --- a/application/controllers/Contesting.php +++ b/application/controllers/Contesting.php @@ -45,7 +45,7 @@ class Contesting extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/contesting.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/contesting.js")), + 'assets/js/sections/contesting.js', ]; $this->load->library('form_validation'); @@ -121,7 +121,7 @@ class Contesting extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/contesting.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/contesting.js")), + 'assets/js/sections/contesting.js', ]; // Render Page @@ -143,7 +143,7 @@ class Contesting extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/contesting.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/contesting.js")), + 'assets/js/sections/contesting.js', ]; $this->form_validation->set_rules('name', 'Contest Name', 'required'); diff --git a/application/controllers/Cron.php b/application/controllers/Cron.php index 20a489f13..d318048bc 100644 --- a/application/controllers/Cron.php +++ b/application/controllers/Cron.php @@ -31,8 +31,8 @@ class cron extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/cronstrue.min.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/cronstrue.min.js")), - 'assets/js/sections/cron.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cron.js")) + 'assets/js/cronstrue.min.js', + 'assets/js/sections/cron.js' ]; $data['page_title'] = __("Cron Manager"); diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index 02bab2fb5..a7a04fd89 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -160,7 +160,7 @@ class Dashboard extends CI_Controller { $dxcc = $this->dxcc->list_current(); $footerData['scripts'] = [ - 'assets/js/sections/dashboard.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/dashboard.js")), + 'assets/js/sections/dashboard.js', ]; // First Login Wizard @@ -189,7 +189,7 @@ class Dashboard extends CI_Controller { $this->load->model('dxcc'); $viewdata['dxcc_list'] = $this->dxcc->list(); - $footerData['scripts'][] = 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")); + $footerData['scripts'][] = 'assets/js/bootstrap-multiselect.js'; $this->load->library('form_validation'); diff --git a/application/controllers/Dxcalendar.php b/application/controllers/Dxcalendar.php index ea024e577..1d0e23075 100644 --- a/application/controllers/Dxcalendar.php +++ b/application/controllers/Dxcalendar.php @@ -85,7 +85,7 @@ class Dxcalendar extends CI_Controller { $footerData['scripts'] = [ - 'assets/js/sections/dxcalendar.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/dxcalendar.js")) + 'assets/js/sections/dxcalendar.js' ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Generic_qsl.php b/application/controllers/Generic_qsl.php index 37198bdd1..ba773ef6f 100644 --- a/application/controllers/Generic_qsl.php +++ b/application/controllers/Generic_qsl.php @@ -21,8 +21,8 @@ class Generic_qsl extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), - 'assets/js/sections/qsl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/qsl.js")), + 'assets/js/bootstrap-multiselect.js', + 'assets/js/sections/qsl.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Gridmap.php b/application/controllers/Gridmap.php index 9beae0b32..30df7a4e1 100644 --- a/application/controllers/Gridmap.php +++ b/application/controllers/Gridmap.php @@ -44,11 +44,11 @@ class Gridmap extends CI_Controller { $footerData = []; $footerData['scripts'] = [ 'assets/js/leaflet/geocoding.js', - 'assets/js/sections/gridmap.js?', + 'assets/js/sections/gridmap.js', 'assets/js/leaflet/L.MaidenheadColouredGridMap.js', - 'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")), - 'assets/js/sections/cqmap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap_geojson.js")), - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), + 'assets/js/sections/itumap_geojson.js', + 'assets/js/sections/cqmap_geojson.js', + 'assets/js/bootstrap-multiselect.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Hamsat.php b/application/controllers/Hamsat.php index 306ec89e0..9ccfb4e77 100644 --- a/application/controllers/Hamsat.php +++ b/application/controllers/Hamsat.php @@ -15,7 +15,7 @@ class Hamsat extends CI_Controller { public function index() { $data['scripts'] = [ - 'assets/js/sections/hamsat.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/hamsat.js")), + 'assets/js/sections/hamsat.js', 'assets/js/moment.min.js', 'assets/js/datetime-moment.js' ]; diff --git a/application/controllers/Logbookadvanced.php b/application/controllers/Logbookadvanced.php index 0e1e34f1d..35d04ef01 100644 --- a/application/controllers/Logbookadvanced.php +++ b/application/controllers/Logbookadvanced.php @@ -91,15 +91,15 @@ class Logbookadvanced extends CI_Controller { $footerData['scripts'] = [ 'assets/js/moment.min.js', 'assets/js/datetime-moment.js', - 'assets/js/sections/logbookadvanced.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced.js")), - 'assets/js/sections/logbookadvanced_edit.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced_edit.js")), - 'assets/js/sections/logbookadvanced_map.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/logbookadvanced_map.js")), - 'assets/js/sections/cqmap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap_geojson.js")), - 'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")), - 'assets/js/leaflet/L.Terminator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/L.Terminator.js")), + 'assets/js/sections/logbookadvanced.js', + 'assets/js/sections/logbookadvanced_edit.js', + 'assets/js/sections/logbookadvanced_map.js', + 'assets/js/sections/cqmap_geojson.js', + 'assets/js/sections/itumap_geojson.js', + 'assets/js/leaflet/L.Terminator.js', 'assets/js/leaflet/geocoding.js', - 'assets/js/globe/globe.gl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/globe/globe.gl.js")), - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), + 'assets/js/globe/globe.gl.js', + 'assets/js/bootstrap-multiselect.js', 'assets/js/leaflet/L.MaidenheadColouredGridMap.js', ]; diff --git a/application/controllers/Map.php b/application/controllers/Map.php index cc3c3838c..41ba2ff2b 100644 --- a/application/controllers/Map.php +++ b/application/controllers/Map.php @@ -51,9 +51,9 @@ class Map extends CI_Controller { $footerData['scripts'] = [ 'assets/js/leaflet/geocoding.js', 'assets/js/leaflet/L.Maidenhead.js', - 'assets/js/sections/qso_map.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/qso_map.js")), - 'assets/js/sections/itumap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/itumap_geojson.js")), - 'assets/js/sections/cqmap_geojson.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/cqmap_geojson.js")), + 'assets/js/sections/qso_map.js', + 'assets/js/sections/itumap_geojson.js', + 'assets/js/sections/cqmap_geojson.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Qsl.php b/application/controllers/Qsl.php index c93d3e4e3..91b22e91d 100644 --- a/application/controllers/Qsl.php +++ b/application/controllers/Qsl.php @@ -27,7 +27,7 @@ class Qsl extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/qsl.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/qsl.js")), + 'assets/js/sections/qsl.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php index 2af84a353..a4ebc4543 100644 --- a/application/controllers/Radio.php +++ b/application/controllers/Radio.php @@ -18,7 +18,7 @@ class Radio extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/radio.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/radio.js")), + 'assets/js/sections/radio.js', ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Satellite.php b/application/controllers/Satellite.php index f3b887011..658e8560d 100644 --- a/application/controllers/Satellite.php +++ b/application/controllers/Satellite.php @@ -34,7 +34,7 @@ class Satellite extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/satellite.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satellite.js")), + 'assets/js/sections/satellite.js', ]; // Render Page @@ -184,10 +184,10 @@ class Satellite extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/satellite.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satellite.js")), - 'assets/js/sections/three-orbit-controls.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/three-orbit-controls.js")), - 'assets/js/sections/satellite_functions.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satellite_functions.js")), - 'assets/js/sections/flightpath.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/flightpath.js")), + 'assets/js/sections/satellite.js', + 'assets/js/sections/three-orbit-controls.js', + 'assets/js/sections/satellite_functions.js', + 'assets/js/sections/flightpath.js', 'assets/js/leaflet/L.Maidenhead.js', 'assets/js/leaflet/geocoding.js', ]; @@ -245,8 +245,8 @@ class Satellite extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), - 'assets/js/sections/satpasses.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satpasses.js")), + 'assets/js/bootstrap-multiselect.js', + 'assets/js/sections/satpasses.js', ]; // Render Page diff --git a/application/controllers/Sattimers.php b/application/controllers/Sattimers.php index 4d51b45f1..ea3f3473f 100644 --- a/application/controllers/Sattimers.php +++ b/application/controllers/Sattimers.php @@ -13,7 +13,7 @@ class Sattimers extends CI_Controller { $this->load->model('stations'); $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/sattimers.js?' + 'assets/js/sections/sattimers.js' ]; $url = 'https://www.df2et.de/tevel/api2.php?grid='.strtoupper($this->stations->find_gridsquare()); diff --git a/application/controllers/Simplefle.php b/application/controllers/Simplefle.php index 5cbd7e3f6..51b142677 100644 --- a/application/controllers/Simplefle.php +++ b/application/controllers/Simplefle.php @@ -27,7 +27,7 @@ class SimpleFLE extends CI_Controller { $footerData['scripts'] = [ 'assets/js/moment.min.js', 'assets/js/datetime-moment.js', - 'assets/js/sections/simplefle.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/simplefle.js")) + 'assets/js/sections/simplefle.js' ]; $this->load->view('interface_assets/header', $data); diff --git a/application/controllers/Stationsetup.php b/application/controllers/Stationsetup.php index 9b7456365..4fdcd50f6 100644 --- a/application/controllers/Stationsetup.php +++ b/application/controllers/Stationsetup.php @@ -32,7 +32,7 @@ class Stationsetup extends CI_Controller { $footerData['scripts'] = [ 'assets/js/moment.min.js', 'assets/js/datetime-moment.js', - 'assets/js/sections/stationsetup.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/stationsetup.js")), + 'assets/js/sections/stationsetup.js', ]; // Get Date format diff --git a/application/controllers/Statistics.php b/application/controllers/Statistics.php index 074f0383a..328d2c620 100644 --- a/application/controllers/Statistics.php +++ b/application/controllers/Statistics.php @@ -321,9 +321,9 @@ class Statistics extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/chart.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/chart.js")), - 'assets/js/sections/antennastats.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/antennastats.js")), - 'assets/js/bootstrap-multiselect.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/bootstrap-multiselect.js")), + 'assets/js/chart.js', + 'assets/js/sections/antennastats.js', + 'assets/js/bootstrap-multiselect.js', ]; // Load Views @@ -389,7 +389,7 @@ class Statistics extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/initials.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/initials.js")), + 'assets/js/sections/initials.js', ]; // Load Views diff --git a/application/controllers/Timeline.php b/application/controllers/Timeline.php index 34cbc6742..091e39c01 100644 --- a/application/controllers/Timeline.php +++ b/application/controllers/Timeline.php @@ -101,7 +101,7 @@ class Timeline extends CI_Controller { $data['onlynew'] = $onlynew; $data['selectedyear'] = $year; - $footerData['scripts'] = [ 'assets/js/sections/timeline.js?' ]; + $footerData['scripts'] = [ 'assets/js/sections/timeline.js' ]; $this->load->view('interface_assets/header', $data); $this->load->view('timeline/index'); $this->load->view('interface_assets/footer', $footerData); diff --git a/application/controllers/User.php b/application/controllers/User.php index 92631c434..34069fe54 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -44,7 +44,7 @@ class User extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/user.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/user.js")), + 'assets/js/sections/user.js', ]; $data['page_title'] = __("User Accounts"); @@ -174,7 +174,7 @@ class User extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/user.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/user.js")), + 'assets/js/sections/user.js', ]; // Get timezones @@ -418,7 +418,7 @@ class User extends CI_Controller { $footerData = []; $footerData['scripts'] = [ - 'assets/js/sections/user.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/user.js")), + 'assets/js/sections/user.js', ]; // Get timezones diff --git a/application/libraries/Paths.php b/application/libraries/Paths.php index 9d4d262aa..3afaaccc7 100644 --- a/application/libraries/Paths.php +++ b/application/libraries/Paths.php @@ -32,4 +32,17 @@ class Paths } return $datadir . "/" . $path; } + + function cache_buster($filepath) { + // make sure $filepath starts with a slash + if (substr($filepath, 0, 1) !== '/') $filepath = '/' . $filepath; + + $fullpath = $_SERVER['DOCUMENT_ROOT'] . $filepath; + if (file_exists($fullpath)) { + return base_url($filepath) . '?v=' . filemtime($fullpath); + } else { + log_message('error', 'CACHE BUSTER: File does not exist: ' . $fullpath); + } + return base_url($filepath); + } } diff --git a/application/views/bandmap/list.php b/application/views/bandmap/list.php index 3d3067df6..e30fa7e81 100644 --- a/application/views/bandmap/list.php +++ b/application/views/bandmap/list.php @@ -173,7 +173,7 @@ // Map configuration (matches QSO map settings) var map_tile_server = 'optionslib->get_option('option_map_tile_server');?>'; var map_tile_server_copyright = 'optionslib->get_option('option_map_tile_server_copyright');?>'; - var icon_dot_url = "assets/images/dot.png"; + var icon_dot_url = "paths->cache_buster('/assets/images/dot.png'); ?>"; // User gridsquare for home position marker var user_gridsquare = ''; - +
@@ -198,7 +198,7 @@
diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 099d3f87a..21bf6c109 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -20,7 +20,7 @@ - var icon_dot_url = "assets/images/dot.png"; + var icon_dot_url = "paths->cache_buster('/assets/images/dot.png');?>"; // get the user_callsign from session var my_call = "session->userdata('user_callsign'); ?>".toUpperCase(); @@ -143,31 +143,31 @@ - - - - - - + + + + + + uri->segment(1) == "activators") { ?> - + - - - - - - - - - + + + + + + + + + - + + uri->segment(1) == "oqrs") { ?> - + uri->segment(1) == "cron") { ?> - + uri->segment(1) == "options") { ?> @@ -333,69 +333,69 @@ function stopImpersonate_modal() { uri->segment(1) == "awards" && ($this->uri->segment(2) == "iota") ) { ?> - + uri->segment(1) == "awards" && ($this->uri->segment(2) == "dxcc") ) { ?> - + uri->segment(1) == "statistics" && $this->uri->segment(2) == "") { ?> - - - + + + uri->segment(1) == "continents") { ?> - - - + + + uri->segment(1) == "adif" || $this->uri->segment(1) == "qrz" || $this->uri->segment(1) == "hrdlog" || $this->uri->segment(1) == "webadif" || $this->uri->segment(1) == "sattimers") { ?> - + uri->segment(1) == "adif" ) { ?> - - + + uri->segment(1) == "notes" ) { ?> uri->segment(2) == "add" || $this->uri->segment(2) == "edit") { ?> - + - + uri->segment(1) == "qso" ) { ?> - + session->userdata('user_dxwaterfall_enable') == 'E' || $this->session->userdata('user_dxwaterfall_enable') == 'Y') && isset($manual_mode) && $manual_mode == 0) { ?> - + uri->segment(1) == "notes" && ($this->uri->segment(2) == "view") ) { ?> - - + + - - - - + + + + uri->segment(1) == "station") { ?> - - - + + + + uri->segment(1) == "debug") { ?> @@ -436,7 +436,7 @@ $(function () { uri->segment(1) == "api") { ?> - + + uri->segment(1) == "" || $this->uri->segment(1) == "dashboard" ) { ?> - - + + - + + - - + + + session->userdata('isWinkeyEnabled')) { ?> - + - - + + + @@ -1349,7 +1349,7 @@ mymap.on('mousemove', onQsoMapMove); var dxwaterfall_cat_state = "none"; - + @@ -1428,7 +1428,7 @@ $(document).ready(function(){ uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?> - + + - + + uri->segment(1) == "distances") { ?> - - - - - + + + + + uri->segment(1) == "hrdlog") { ?> - + uri->segment(1) == "qrz") { ?> - + uri->segment(1) == "webadif") { ?> - + uri->segment(2) == "dxcc" || $this->uri->segment(2) == "wae" || $this->uri->segment(2) == "wpx") { ?> @@ -2241,7 +2241,7 @@ $('#sats').change(function(){ } function displayTimelineContacts(querystring, band, mode, propmode, type) { - var baseURL= ""; + var baseURL= ""; $.ajax({ url: baseURL + 'index.php/timeline/details', type: 'post', @@ -2279,28 +2279,28 @@ $('#sats').change(function(){ uri->segment(1) == "usermode") { ?> - + uri->segment(1) == "mode") { ?> - + uri->segment(1) == "band") { ?> - + uri->segment(1) == "accumulated") { ?> - - + + uri->segment(1) == "timeplotter") { ?> - - - - - + + + + + uri->segment(1) == "generic_qsl" || $this->uri->segment(1) == "qsl" || $this->uri->segment(1) == "eqsl") { @@ -2326,8 +2326,8 @@ $('#sats').change(function(){ } ?> - - + + + uri->segment(1) == "themes") { ?> - + @@ -2915,8 +2915,8 @@ function viewEqsl(picture, callsign) { uri->segment(1) == "distancerecords") { ?> - - + + - - + + uri->segment(2) == "wwff") { ?> + ?> - + - + - + optionslib->get_theme(); if ($theme) { ?> - - - - - - + + + + + + uri->segment(1) == "awards")) { @@ -38,33 +38,33 @@ - + - + - - + + uri->segment(1) == "search" && $this->uri->segment(2) == "filter") { ?> - + uri->segment(1) == "notes" && ($this->uri->segment(2) == "add" || $this->uri->segment(2) == "edit" || $this->uri->segment(2) == "view")) || $this->uri->segment(1) == "qso") { ?> - + - - + + uri->segment(1) == "sattimers") { ?> - + - '; - } ?> + + + - '; - } ?> + + + - + <?php if (isset($page_title)) { echo $page_title; @@ -94,7 +94,7 @@ <body dir="<?php echo $language['direction']; ?>"> <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 $this->paths->cache_buster('/assets/logo/'. $this->optionslib->get_logo('header_logo').'.png'); ?>" alt="Logo" /></a> <?php if (ENVIRONMENT == "development") { ?> <span class="badge text-bg-danger me-1"><?= __("Developer Mode"); ?></span> <?php } ?> diff --git a/application/views/interface_assets/mini_header.php b/application/views/interface_assets/mini_header.php index 5d0463074..e00c27a1a 100644 --- a/application/views/interface_assets/mini_header.php +++ b/application/views/interface_assets/mini_header.php @@ -7,20 +7,20 @@ <!-- Bootstrap CSS --> <?php if($this->optionslib->get_theme()) { ?> - <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme();?>/bootstrap.min.css"> - <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/general.css"> - <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme();?>/overrides.css"> + <link rel="stylesheet" href="<?php echo $this->paths->cache_buster('/assets/css/' . $this->optionslib->get_theme() . '/bootstrap.min.css'); ?>"> + <link rel="stylesheet" href="<?php echo $this->paths->cache_buster('/assets/css/general.css'); ?>"> + <link rel="stylesheet" href="<?php echo $this->paths->cache_buster('/assets/css/' . $this->optionslib->get_theme() . '/overrides.css'); ?>"> <?php } ?> - <link rel="stylesheet" href="<?php echo base_url(); ?>assets/fontawesome/css/all.min.css"> + <link rel="stylesheet" href="<?php echo $this->paths->cache_buster('/assets/fontawesome/css/all.min.css'); ?>"> - <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery.fancybox.min.css" /> + <link rel="stylesheet" href="<?php echo $this->paths->cache_buster('/assets/css/jquery.fancybox.min.css'); ?>" /> <!-- Maps --> - <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/js/leaflet/leaflet.css" /> + <link rel="stylesheet" type="text/css" href="<?php echo $this->paths->cache_buster('/assets/js/leaflet/leaflet.css'); ?>" /> - <?php if (file_exists(APPPATH.'../assets/css/custom.css')) { echo '<link rel="stylesheet" href="'.base_url().'assets/css/custom.css">'; } ?> + <?php if (file_exists(APPPATH.'../assets/css/custom.css')) { echo '<link rel="stylesheet" href="'.$this->paths->cache_buster('/assets/css/custom.css').'">'; } ?> - <link rel="icon" href="<?php echo base_url(); ?>favicon.ico"> + <link rel="icon" href="<?php echo $this->paths->cache_buster('/favicon.ico'); ?>"> <title><?php if(isset($page_title)) { echo $page_title; } ?> - Wavelog diff --git a/application/views/visitor/layout/footer.php b/application/views/visitor/layout/footer.php index 2dc434e9d..24e722d67 100644 --- a/application/views/visitor/layout/footer.php +++ b/application/views/visitor/layout/footer.php @@ -6,7 +6,7 @@ */ var base_url = ""; // Base URL var site_url = ""; // Site URL - var icon_dot_url = "assets/images/dot.png"; + var icon_dot_url = "paths->cache_buster('/assets/images/dot.png'); ?>"; var option_map_tile_server_copyright = 'optionslib->get_option('option_map_tile_server_copyright');?>'; var option_map_tile_subdomains = 'optionslib->get_option('option_map_tile_subdomains') ?? 'abc';?>'; var lang_general_gridsquares = ""; @@ -14,21 +14,21 @@ - - - - - - - - - + + + + + + + + + paths->cache_buster('/assets/json/datatables_languages/' . $local_code . '.json'); // Check if the file exists if ($lang_code != 'en' && !file_exists(FCPATH . "assets/json/datatables_languages/" . $local_code . ".json")) { @@ -57,8 +57,8 @@ if ($lang_code != 'en' && !file_exists(FCPATH . "assets/json/datatables_language - - + + - + + session->userdata('user_type') >= 2) { ?> - - - - - + + + + + '; + echo ''; } ?> - + <?php if(isset($page_title)) { echo $page_title; } ?> - Wavelog @@ -50,9 +50,9 @@ '; + echo ''; } else { - echo 'Logo'; + echo 'Logo'; } ?>