mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
15 lines
462 B
PHP
15 lines
462 B
PHP
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
||
|
class Setup extends CI_Controller {
|
||
|
|
||
|
/* Default setup page*/
|
||
|
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'); }
|
||
|
|
||
|
$this->load->view('layout/header');
|
||
|
$this->load->view('setup/index');
|
||
|
$this->load->view('layout/footer');
|
||
|
}
|
||
|
}
|