From 5284613dc09baefd2b52c6cc7e21b97f17322307 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 26 Aug 2024 15:41:48 +0200 Subject: [PATCH] Add some uppercases and strtouppers --- application/models/Stations.php | 18 +++++----- application/views/station_profile/create.php | 14 ++++---- application/views/station_profile/edit.php | 38 ++++++++++---------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/application/models/Stations.php b/application/models/Stations.php index 509b1beac..a2c99d26c 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -114,7 +114,7 @@ class Stations extends CI_Model { 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), - 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), + 'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county, @@ -168,15 +168,15 @@ class Stations extends CI_Model { $data = array( 'station_profile_name' => xss_clean($this->input->post('station_profile_name', true)), - 'station_gridsquare' => xss_clean($this->input->post('gridsquare', true)), + 'station_gridsquare' => xss_clean(strtoupper($this->input->post('gridsquare', true))), 'station_city' => xss_clean($this->input->post('city', true)), - 'station_iota' => xss_clean($this->input->post('iota', true)), - 'station_sota' => xss_clean($this->input->post('sota', true)), - 'station_wwff' => xss_clean($this->input->post('wwff', true)), - 'station_pota' => xss_clean($this->input->post('pota', true)), - 'station_sig' => xss_clean($this->input->post('sig', true)), - 'station_sig_info' => xss_clean($this->input->post('sig_info', true)), - 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), + 'station_iota' => xss_clean(strtoupper($this->input->post('iota', true))), + 'station_sota' => xss_clean(strtoupper($this->input->post('sota', true))), + 'station_wwff' => xss_clean(strtoupper($this->input->post('wwff', true))), + 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), + 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), + 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), + 'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county, diff --git a/application/views/station_profile/create.php b/application/views/station_profile/create.php index 199f83899..dcbc20fc4 100644 --- a/application/views/station_profile/create.php +++ b/application/views/station_profile/create.php @@ -62,7 +62,7 @@ if ($dxcc_list->result() > 0) {
- +
@@ -142,7 +142,7 @@ if ($dxcc_list->result() > 0) {
- +
@@ -170,31 +170,31 @@ if ($dxcc_list->result() > 0) {
- + ".__("SOTA Maps website").""); ?>
- + ".__("GMA Map website").""); ?>
- + ".__("POTA Map website").""); ?>
- +
- +
diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index c36e0204f..d62be7342 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -71,7 +71,7 @@ if ($dxcc_list->result() > 0) {
- station_callsign; } ?>" required> + station_callsign; } ?>" required>
@@ -197,7 +197,7 @@ if ($dxcc_list->result() > 0) {
- station_gridsquare; } ?>" required> + station_gridsquare; } ?>" required>
@@ -243,8 +243,8 @@ if ($dxcc_list->result() > 0) {
- - station_sota; } ?>"> + + station_sota; } ?>"> ".__("SOTA Maps website").""); ?>
@@ -257,7 +257,7 @@ if ($dxcc_list->result() > 0) {
- station_wwff; } ?>"> + station_wwff; } ?>"> ".__("GMA Map website").""); ?>
@@ -270,7 +270,7 @@ if ($dxcc_list->result() > 0) {
- station_pota; } ?>"> + station_pota; } ?>"> ".__("POTA Map website").""); ?>
@@ -284,15 +284,15 @@ if ($dxcc_list->result() > 0) {
- - station_sig; } ?>"> - + + station_sig; } ?>"> +
- - station_sig_info; } ?>"> - + + station_sig_info; } ?>"> +
@@ -305,16 +305,16 @@ if ($dxcc_list->result() > 0) {
- - eqslqthnickname; } ?>"> - + + eqslqthnickname; } ?>"> +
- + - - -
+ + +