24 行
		
	
	
		
			无行尾
		
	
	
		
			835 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 行
		
	
	
		
			无行尾
		
	
	
		
			835 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 | |
| 
 | |
| class SimpleFLE extends CI_Controller {
 | |
| 
 | |
|     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";
 | |
|         
 | |
| 		$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"))
 | |
| 		];
 | |
| 
 | |
| 		$this->load->view('interface_assets/header', $data);
 | |
| 		$this->load->view('simplefle/index');
 | |
| 		$this->load->view('interface_assets/footer', $footerData);
 | |
| 
 | |
|     }
 | |
| } |