Cloudlog/application/controllers/Simplefle.php

24 wiersze
835 B
PHP
Czysty Zwykły widok Historia

2023-10-24 20:53:45 +00:00
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2023-10-25 05:48:51 +00:00
class SimpleFLE extends CI_Controller {
2023-10-24 20:53:45 +00:00
public function index() {
$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'); }
$data['page_title'] = "Simple Fast Log Entry";
2023-10-25 08:02:06 +00:00
$footerData = [];
$footerData['scripts'] = [
'assets/js/moment.min.js',
'assets/js/tempusdominus-bootstrap-4.min.js',
'assets/js/datetime-moment.js',
'assets/js/sections/simplefle.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/simplefle.js"))
];
2023-10-24 20:53:45 +00:00
$this->load->view('interface_assets/header', $data);
2023-10-25 05:48:51 +00:00
$this->load->view('simplefle/index');
2023-10-25 08:02:06 +00:00
$this->load->view('interface_assets/footer', $footerData);
2023-10-24 20:53:45 +00:00
}
}