Files
FHC-Core/application/core/FHC_Controller.php
T
root e2744500a6 Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci
Conflicts:
	application/core/FHC_Controller.php
2016-06-21 16:31:06 +02:00

26 lines
466 B
PHP

<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
class FHC_Controller extends CI_Controller
{
protected $_uid; // needs to be changed to protected $_uid
public function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->helper('fhcauth');
$this->_uid = getAuthUID();
}
public function getUID()
{
if (empty($this->_uid))
return false;
else
return $this->_uid;
}
}