mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Misc fixes
This commit is contained in:
@@ -190,7 +190,7 @@ class Calltester extends CI_Controller {
|
|||||||
from ' . $this->config->item('table_name') . '
|
from ' . $this->config->item('table_name') . '
|
||||||
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
|
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
|
||||||
where station_profile.user_id = ?';
|
where station_profile.user_id = ?';
|
||||||
$params[] = array($this->session->userdata('user_id'));
|
$params[] = $this->session->userdata('user_id');
|
||||||
|
|
||||||
if ($station_id && is_numeric($station_id)) {
|
if ($station_id && is_numeric($station_id)) {
|
||||||
$sql .= ' and ' . $this->config->item('table_name') . '.station_id = ?';
|
$sql .= ' and ' . $this->config->item('table_name') . '.station_id = ?';
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ class Map extends CI_Controller {
|
|||||||
* QSO Map with country selection and OpenStreetMap
|
* QSO Map with country selection and OpenStreetMap
|
||||||
*/
|
*/
|
||||||
public function qso_map() {
|
public function qso_map() {
|
||||||
|
$this->load->model('user_model');
|
||||||
|
if (!$this->user_model->authorize(99)) {
|
||||||
|
$this->session->set_flashdata('error', __("You're not allowed to do that!"));
|
||||||
|
redirect('dashboard');
|
||||||
|
}
|
||||||
|
|
||||||
$this->load->library('Geojson');
|
$this->load->library('Geojson');
|
||||||
$this->load->model('Map_model');
|
$this->load->model('Map_model');
|
||||||
$this->load->model('stations');
|
$this->load->model('stations');
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Zonechecker extends CI_Controller {
|
|||||||
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
|
join station_profile on ' . $this->config->item('table_name') . '.station_id = station_profile.station_id
|
||||||
where station_profile.user_id = ?
|
where station_profile.user_id = ?
|
||||||
and length(col_gridsquare) >= 6';
|
and length(col_gridsquare) >= 6';
|
||||||
$params[] = array($this->session->userdata('user_id'));
|
$params[] = $this->session->userdata('user_id');
|
||||||
|
|
||||||
if ($station_id && is_numeric($station_id)) {
|
if ($station_id && is_numeric($station_id)) {
|
||||||
$sql .= ' and ' . $this->config->item('table_name') . '.station_id = ?';
|
$sql .= ' and ' . $this->config->item('table_name') . '.station_id = ?';
|
||||||
|
|||||||
Reference in New Issue
Block a user