You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
408 B
24 lines
408 B
9 years ago
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
|
||
|
/**
|
||
|
* Logout Class
|
||
|
*/
|
||
|
class Dashboard extends CI_Controller
|
||
|
{
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
parent::__construct();
|
||
|
$this->load->library('session');
|
||
|
if(! $this->session->userdata('validated')){
|
||
|
redirect(base_url('/login'));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
echo "UID: ".$this->session->id;
|
||
|
}
|
||
|
|
||
|
}
|