mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-23 00:37:56 -05:00
38 lines
743 B
PHP
38 lines
743 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
require_once("Secure_Controller.php");
|
|
|
|
class Home extends Secure_Controller
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct(NULL, NULL, 'home');
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->load->view('home');
|
|
}
|
|
|
|
public function logout()
|
|
{
|
|
$this->Employee->logout();
|
|
}
|
|
|
|
/*
|
|
Loads the change password form
|
|
*/
|
|
public function change_password($employee_id = -1)
|
|
{
|
|
$person_info = $this->Employee->get_info($employee_id);
|
|
foreach(get_object_vars($person_info) as $property => $value)
|
|
{
|
|
$person_info->$property = $this->xss_clean($value);
|
|
}
|
|
$data['person_info'] = $person_info;
|
|
|
|
$this->load->view('employees/form_change_password', $data);
|
|
}
|
|
}
|
|
?>
|