Files
wavelog/application/controllers/Satellites.php
Andreas Kristiansen 3147904fe3 Added page for satellite
2024-02-29 19:13:37 +01:00

36 lines
981 B
PHP

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
Handles Displaying of band information
*/
class Satellites extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$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'); }
}
public function index()
{
$this->load->model('satellite_model');
$pageData['satellites'] = $this->satellite_model->get_all_satellites();
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/satellites.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satellites.js")),
];
// Render Page
$data['page_title'] = "Satellites";
$this->load->view('interface_assets/header', $pageData);
$this->load->view('satellites/index');
$this->load->view('interface_assets/footer', $footerData);
}
}