From 54ad24d3bef39378f9f40d5a0d22fa1a96a7f329 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 28 Dec 2022 23:47:44 +0100 Subject: [PATCH 1/3] Set qsoid to 0 for not-in-log requests --- application/models/Oqrs_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Oqrs_model.php b/application/models/Oqrs_model.php index 9214a35e..25201da6 100644 --- a/application/models/Oqrs_model.php +++ b/application/models/Oqrs_model.php @@ -145,6 +145,7 @@ class Oqrs_model extends CI_Model { 'email' => xss_clean($postdata['email']), 'qslroute' => '', 'status' => '1', + 'qsoid' => '0', ); $this->db->insert('oqrs', $data); @@ -249,4 +250,4 @@ class Oqrs_model extends CI_Model { return ''; } -} \ No newline at end of file +} From 81b9c270c8d6a6d5ec50a3fbea74e2e3b4ce3613 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 29 Dec 2022 00:00:45 +0100 Subject: [PATCH 2/3] Correct text input id to be able to save it --- application/views/oqrs/notinlogform.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/oqrs/notinlogform.php b/application/views/oqrs/notinlogform.php index 6d6f079a..9e8d7f42 100644 --- a/application/views/oqrs/notinlogform.php +++ b/application/views/oqrs/notinlogform.php @@ -27,7 +27,7 @@ checked.
- + Any extra information we need to know about?
@@ -40,4 +40,4 @@ checked.
-
\ No newline at end of file + From b2a932b1258cab8523504b10e7f382534ff8dff4 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 29 Dec 2022 00:06:23 +0100 Subject: [PATCH 3/3] Load eqsl and lotw lang to fix log warnings and display errors in check log --- application/controllers/Oqrs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Oqrs.php b/application/controllers/Oqrs.php index a021d763..46fde176 100644 --- a/application/controllers/Oqrs.php +++ b/application/controllers/Oqrs.php @@ -9,6 +9,8 @@ class Oqrs extends CI_Controller { function __construct() { parent::__construct(); + $this->lang->load('lotw'); + $this->lang->load('eqsl'); // Commented out to get public access // $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'); }