From 696b79fb5ae39d6d1cdf73f93df131a0901cae26 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 6 Aug 2024 13:12:15 +0200 Subject: [PATCH] same for contesting and in footer --- application/controllers/Contesting.php | 10 ++++++++++ application/views/contesting/index.php | 8 ++++---- application/views/interface_assets/footer.php | 4 ++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/application/controllers/Contesting.php b/application/controllers/Contesting.php index d0cad9fd8..ebb3ba55c 100644 --- a/application/controllers/Contesting.php +++ b/application/controllers/Contesting.php @@ -21,6 +21,16 @@ class Contesting extends CI_Controller { $this->load->model('contesting_model'); $this->load->model('bands'); + // Getting the live/post mode from GET command + // 0 = live + // 1 = post (manual) + $get_manual_mode = $this->security->xss_clean($this->input->get('manual')); + if ($get_manual_mode == '0' || $get_manual_mode == '1') { + $data['manual_mode'] = $get_manual_mode; + } else { + show_404(); + } + $data['my_gridsquare'] = $this->stations->find_gridsquare(); $data['radios'] = $this->cat->radios(); $data['modes'] = $this->modes->active(); diff --git a/application/views/contesting/index.php b/application/views/contesting/index.php index c218376bf..ceb522319 100644 --- a/application/views/contesting/index.php +++ b/application/views/contesting/index.php @@ -1,6 +1,6 @@
-

LIVE" : " POST"); ?> +

LIVE" : " POST"); ?>
@@ -40,15 +40,15 @@
- > + >
- > + >
- + diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index bea3fb9d7..7fc521bb3 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -981,7 +981,7 @@ $($('#callsign')).on('keypress',function(e) { uri->segment(1) == "contesting" && ($this->uri->segment(2) != "add" && $this->uri->segment(2) != "edit")) { ?>