mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-25 11:32:35 +00:00
36 lines
981 B
PHP
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);
|
|
}
|
|
}
|