18 lines
501 B
PHP
18 lines
501 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Dashboard extends CI_Controller {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
if (!isset($_SESSION['user']) || empty($_SESSION['user']) || $_SESSION['user']['rank'] < 6) redirect(base_url('login'));
|
|
$this->load->view('admin/sidebar', ['title' => 'Dashboard']);
|
|
$this->load->view('admin/dashboard');
|
|
$this->load->view('admin/footer');
|
|
}
|
|
}
|