wavelog/application/controllers/Activatorsmap.php

30 lines
740 B
PHP
Raw Permalink Normal View History

2022-06-12 13:18:26 +02:00
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
Data lookup functions used within Wavelog
2022-06-12 13:18:26 +02:00
*/
class Activatorsmap extends CI_Controller {
function __construct() {
parent::__construct();
2024-08-16 10:08:44 +02:00
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); }
2022-06-12 13:18:26 +02:00
}
public function index() {
2024-06-08 11:01:59 +02:00
$data['page_title'] = __("Activators Map");
2022-06-12 13:18:26 +02:00
$this->load->model('stations');
$data['station_locator'] = $this->stations->find_gridsquare();
$this->load->view('activatorsmap/index', $data);
}
public function calculate() {
$data['grids'] = "test";
header('Content-Type: application/json');
echo json_encode($data);
}
}