mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-10 02:17:57 -05:00
It also automatically generates an encryption key if not existing storing it in config/config.php in order to enable encryption.
24 lines
388 B
PHP
24 lines
388 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
require_once("Secure_Controller.php");
|
|
|
|
class Home extends Secure_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->load->view('home');
|
|
}
|
|
|
|
public function logout()
|
|
{
|
|
$this->track_page('logout', 'logout');
|
|
|
|
$this->Employee->logout();
|
|
}
|
|
}
|
|
?>
|