Merge branch 'dev' into default_radio

This commit is contained in:
HB9HIL
2024-08-06 17:18:44 +02:00
committed by GitHub
40 changed files with 2186 additions and 1932 deletions

View File

@@ -18,6 +18,16 @@ class QSO extends CI_Controller {
$this->load->model('bands');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
// 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['active_station_profile'] = $this->stations->find_active();
$data['notice'] = false;
@@ -440,7 +450,7 @@ class QSO extends CI_Controller {
$this->load->library('sota');
$json = [];
if (!empty($this->input->get("query"))) {
if (!empty($this->security->xss_clean($this->input->get("query")))) {
$query = $_GET['query'] ?? FALSE;
$json = $this->sota->get($query);
}
@@ -452,7 +462,7 @@ class QSO extends CI_Controller {
public function get_wwff() {
$json = [];
if(!empty($this->input->get("query"))) {
if (!empty($this->security->xss_clean($this->input->get("query")))) {
$query = isset($_GET['query']) ? $_GET['query'] : FALSE;
$wwff = strtoupper($query);
@@ -488,7 +498,7 @@ class QSO extends CI_Controller {
public function get_pota() {
$json = [];
if(!empty($this->input->get("query"))) {
if (!empty($this->security->xss_clean($this->input->get("query")))) {
$query = isset($_GET['query']) ? $_GET['query'] : FALSE;
$pota = strtoupper($query);
@@ -527,7 +537,7 @@ class QSO extends CI_Controller {
public function get_dok() {
$json = [];
if(!empty($this->input->get("query"))) {
if (!empty($this->security->xss_clean($this->input->get("query")))) {
$query = isset($_GET['query']) ? $_GET['query'] : FALSE;
$dok = strtoupper($query);