mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Messages
This commit is contained in:
@@ -3,19 +3,22 @@ if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class FHC_Controller extends CI_Controller
|
||||
{
|
||||
public $uid;
|
||||
protected $_uid; // needs to be changed to protected $_uid
|
||||
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->library('session');
|
||||
//$this->load->helper('language');
|
||||
$this->load->helper('fhcauth');
|
||||
|
||||
// look if User is logged in and set uid
|
||||
if (isset($_SERVER['PHP_AUTH_USER']))
|
||||
$this->uid = $_SERVER['PHP_AUTH_USER'];
|
||||
if (isset($_SESSION['uid']))
|
||||
$this->uid = $_SESSION['uid'];
|
||||
$this->session->set_userdata('uid', 'pam');
|
||||
$this->_uid = getAuthUID();
|
||||
}
|
||||
|
||||
public function getUID()
|
||||
{
|
||||
if (empty($this->_uid))
|
||||
return false;
|
||||
else
|
||||
return $this->_uid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user